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