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