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