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