instance property
FlutterBadgeControllerPlatform
get
instance
The default instance of FlutterBadgeControllerPlatform to use.
Defaults to MethodChannelFlutterBadgeController.
Implementation
static FlutterBadgeControllerPlatform get instance => _instance;
set
instance
(FlutterBadgeControllerPlatform instance)
Sets the active platform-specific implementation.
Platform implementations (e.g., Android, iOS, Web) should call this during plugin registration.
Implementation
static set instance(FlutterBadgeControllerPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}