instance property

The default instance of FlutterDeviceStatePlatform to use.

Defaults to MethodChannelFlutterDeviceState.

Implementation

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

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

Implementation

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