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