unsubscribeFromTopic static method

dynamic unsubscribeFromTopic(
  1. String topic
)

To unsubscribe from a topic, call the unsubscribeFromTopic method with the topic name:

Implementation

static unsubscribeFromTopic(String topic) {
  FirebaseMessaging.instance.unsubscribeFromTopic(topic);
}