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