instance property

The default instance of AzureNotificationHubPlatform to use.

Defaults to MethodChannelAzureNotificationHub.

Implementation

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

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

Implementation

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