MethodChannelFlutterBadgeManager class

Legacy MethodChannel-based fallback implementation of FlutterBadgeManagerPlatform.

Federated platform packages now register their own Pigeon-backed implementations during plugin registration. This class remains available only as a compatibility fallback when no federated implementation has been registered yet.

Inheritance
Annotations
  • @Deprecated('Use FlutterBadgeManager.instance or a federated platform implementation. ' 'This class remains as a legacy fallback only.')

Properties

hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isSupported() Future<bool>
Checks if the device supports app badges.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() Future<void>
Removes the app badge.
override
toString() String
A string representation of this object.
inherited
update(int count) Future<void>
Updates the app badge count.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance MethodChannelFlutterBadgeManager
Returns the default instance of MethodChannelFlutterBadgeManager.
no setter