title: How to change message shown to user when screenshots are disabled via windowmanager in flutter
body: <p>I'm currently using the <a href="https://pub.dev/packages/flutter_windowmanager" rel="nofollow noreferrer">flutter_windowmanager</a> package to prevent users from taken screenshots or recording videos of my app in Flutter. I simply add the necessary flag on startup and remove it when the app is closed by calling this code:</p>
  <pre><code>  Future&lt;void&gt; secureScreen() async {
      await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
    }
  
    Future&lt;void&gt; removeSecureScreen() async {
      await FlutterWindowManager.clearFlags(FlutterWindowManager.FLAG_SECURE);
    }
  </code></pre>
  <p>But I'd also like to change the message shown to the user when they try to take screenshots while they're disabled. Right now it just says <code>Can't take screenshot due to security policy.</code> in a popup message. I just want to show the user a different message.</p>