subscribe method
- List<
Subscription> events
Subscribes to the specified notifications.
events
- An array of the subscribed subscription types.
Implementation
Future<void> subscribe(List<Subscription> events) {
var args = {"subscriptions": events.map((e) => e.toJson()).toList()};
return _methodChannel.invokeMethod<void>("subscribe", args);
}