subscribe static method

Future<Channel> subscribe(
  1. String channelName
)

Subscribe to a channel Use the returned Channel to bind events

Implementation

static Future<Channel> subscribe(String channelName) async {
  await _channel.invokeMethod('subscribe', channelName);
  return Channel(name: channelName);
}