unsubscribe method

Future<String> unsubscribe (
  1. String channelName
)

Implementation

Future<String> unsubscribe(String channelName) async {
  if (channelName == null || channelName.trim().length == 0) {
    throw new Exception(
        "channelName is invalid. Please provide a valid name for unsubscribe");
  }

  var params = <String, dynamic>{'channelName': channelName};

  return _channel.invokeMethod("unsubscribe", params);
}