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