instance property

SprintlivenessPlatform get instance

The default instance of SprintlivenessPlatform to use.

Defaults to MethodChannelSprintliveness.

Implementation

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

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

Implementation

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