instance property

ApphudPlusPlatform get instance

The default instance of ApphudPlusPlatform to use.

Defaults to MethodChannelApphudPlus.

Implementation

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

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

Implementation

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