unsubscribe static method
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]!;
}