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