instance property

IsAirplaneModePlatform get instance

The default instance of IsAirplaneModePlatform to use.

Defaults to MethodChannelIsAirplaneMode.

Implementation

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

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

Implementation

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