subscribe static method
Subscribe to a topic.
topic
is the name of that topic. The naming rules must follow FCM topic naming standards.
Implementation
static Future<void> subscribe(String topic) async =>
_channel.invokeMethod("PushPole#subscribe", {"topic": topic});