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