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