instance property

ScreenTimePlatform get instance

The default instance of ScreenTimePlatform to use.

Defaults to MethodChannelScreenTime.

Implementation

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

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

Implementation

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