instance property

NtfyPlatform get instance

The default instance of NtfyPlatform to use.

Defaults to MethodChannelNtfy.

Implementation

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

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

Implementation

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