subscribeToTopic method

Future<bool> subscribeToTopic(
  1. String topic
)

Implementation

Future<bool> subscribeToTopic(String topic) async {
  return await _channel.invokeMethod(
      CHANNEL_METHOD_SUBSCRIBE_TOPIC, {NOTIFICATION_TOPIC: topic});
}