ready property
The ready getter, that returns when the platform is ready for the operation requested. Await this method to know when the plugin will be ready.
Implementation
@override
Future<void> get ready async {
if (eventStream == null) {
await _channel.invokeMethod('$_classType.initialize', toJson());
_eventStream = EventChannel('$_channelName.$_classType.$_id').receiveBroadcastStream().map(transformPlatformEvent);
}
}