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