instance property

DoNotDisturbPlatform get instance

The default instance of DoNotDisturbPlatform to use.

Defaults to MethodChannelDoNotDisturb.

Implementation

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

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

Implementation

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