unbind method

Future<void> unbind(
  1. String eventName
)

Unbinds the callback from the given eventName, in the scope of the channel being acted upon

Implementation

Future<void> unbind(String eventName) async {
  _eventCallbacks.remove(this.name + eventName);

  await _mChannel.invokeMethod('unbind', {
    'channelName': this.name,
    'eventName': eventName,
  });
}