instance property

FluWakeLockPlatform get instance

The default instance of FluWakeLockPlatform to use.

Defaults to MethodChannelFluWakeLock.

Implementation

static FluWakeLockPlatform get instance => _instance;
set instance (FluWakeLockPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends FluWakeLockPlatform when they register themselves.

Implementation

static set instance(FluWakeLockPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}