instance property

AppBadgePlusPlatform get instance

The default instance of AppBadgePlusPlatform to use.

Defaults to MethodChannelAppBadgePlus.

Implementation

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

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

Implementation

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