instance property

The default instance of LocalNotificationsPlatform to use.

Defaults to MethodChannelLocalNotifications.

Implementation

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

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

Implementation

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