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