instance property
NativeNotificationHandlerPlatform
get
instance
The default instance of NativeNotificationHandlerPlatform to use.
Defaults to MethodChannelNativeNotificationHandler.
Implementation
static NativeNotificationHandlerPlatform get instance => _instance;
set
instance
(NativeNotificationHandlerPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends NativeNotificationHandlerPlatform when they register themselves.
Implementation
static set instance(NativeNotificationHandlerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}