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