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