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