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