instance property
MyFlutterPluginPlatform
get
instance
The default instance of MyFlutterPluginPlatform to use.
Defaults to MethodChannelMyFlutterPlugin.
Implementation
static MyFlutterPluginPlatform get instance => _instance;
set
instance
(MyFlutterPluginPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MyFlutterPluginPlatform when they register themselves.
Implementation
static set instance(MyFlutterPluginPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}