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