title: How to disable cloud messaging in flutter app?
body: <p>I am making an app with push notifications. These are already implemented with FirebaseMessaging.
  This is the code for it: </p>
  
  <pre><code>_firebaseMessaging = new FirebaseMessaging();
    _firebaseMessaging.configure(
      onMessage: (Map&lt;String, dynamic&gt; message) {
        print("Message: " + message.toString());
      },
      onResume: (Map&lt;String, dynamic&gt; message) {
        print("Message: " + message.toString());
      },
      onLaunch: (Map&lt;String, dynamic&gt; message) {
        print("Message: " + message.toString());
      },
    );
    _firebaseMessaging.getToken().then((token) {
      print(token);
    });
  </code></pre>
  
  <p>I also have a settings page in the app. There it is possible for the user to uncheck the property for receiving notifications. Under the hood, it's just a variable that is set to false at the moment.
  My question is: How is it possible to disable the push notifications for those users?</p>