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