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