instance property

MipushPlatform get instance

The default instance of MipushPlatform to use.

Defaults to MethodChannelMipush.

Implementation

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

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

Implementation

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