MethodChannelFlutterNativeBadge class

An implementation of FlutterNativeBadgePlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearBadgeCount() Future<void>
Clears the badge count of the app icon. This will also hide the red dot on top of the app icon. and set the badge count to 0.
override
getBadgeCount() Future<int>
Gets the badge count of the app icon. Returns 0 if the badge count is not set.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() Future<void>
Requests permission to show badges. On iOS, this will show a permission dialog. on Mac OS, this will do nothing.
override
setBadgeCount(int count) Future<void>
Sets the badge count of the app icon. On iOS, this will also show a red dot on top of the app icon.
override
showRedDot() Future<void>
Shows a red dot on top of the app icon.
override
toString() String
A string representation of this object.
inherited

Operators

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