waitForChannelId method

Future<String> waitForChannelId()

Returns the channel ID. If the channel ID is not yet created the function it will wait for it before returning. After the channel ID is created, this method functions the same as identifier.

@returns A future with the channel ID.

Implementation

Future<String> waitForChannelId() async {
  return await _module.channel.invokeMethod('channel#waitForChannelId');
}