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