unsubscribe method

Future<void> unsubscribe(
  1. List<Subscription> events
)

Unsubscribes from the specified notifications. events An array of the subscribed subscription types.

Implementation

Future<void> unsubscribe(List<Subscription> events) {
  var args = {"subscriptions": events.map((e) => e.toJson()).toList()};
  return _methodChannel.invokeMethod<void>("unsubscribe", args);
}