instance property

The default instance of FlutterAppLifecyclePlatform to use.

Defaults to MethodChannelFlutterAppLifecycle.

Implementation

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

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

Implementation

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