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