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