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