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