channel property
Future<MethodChannel>
get
channel
An internal property that users should not use. The exported MethodChannel that is resolved when the plugin is initialized.
Implementation
static Future<MethodChannel> get channel async {
switch (_pluginState) {
case _PluginState.uninitialized:
throw StateError('LinuxWebViewPlugin has not been initialized.'
' Call LinuxWebViewPlugin.initialize() first to'
' initialize the plugin if you have not already done so.');
case _PluginState.initializing:
log.info(
'LinuxWebViewPlugin.channel is pending completion of plugin initialization...');
await _pluginInitDone.future;
return _channel;
case _PluginState.initialized:
return _channel;
}
}