instance property

MyPushPlatform get instance

The default instance of MyPushPlatform to use.

Defaults to MethodChannelMyPush.

Implementation

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

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

Implementation

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