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