instance property

HaloFeedbackPlatform get instance

The default instance of HaloFeedbackPlatform to use.

Defaults to MethodChannelHaloFeedback.

Implementation

static HaloFeedbackPlatform get instance => _instance;
set instance (HaloFeedbackPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends HaloFeedbackPlatform when they register themselves.

Implementation

static set instance(HaloFeedbackPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}