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