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