subscribe static method

Future<void> subscribe(
  1. String topic
)

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});