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