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