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