unsubscribe static method

Future<String> unsubscribe(
  1. String topic
)

Unsubscribes from topics that are subscribed to.

When a topic is unsubscribed from, the user will not receive a notification from that topic.

Implementation

static Future<String> unsubscribe(String topic) async {
  final String? result = await _methodChannel.invokeMethod(
    'unsubscribe',
    <String, String>{
      'topic': topic,
    },
  );
  return resultCodes[result]!;
}