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