MethodChannelFlutterNativeBadge class
An implementation of FlutterNativeBadgePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterNativeBadgePlatform
- MethodChannelFlutterNativeBadge
Constructors
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 from the app icon and sets the badge count to
0.override -
getBadgeCount(
) → Future< int> -
Gets the badge count of the app icon.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
) → Future< void> -
Requests permission to show badges, if the platform requires it.
override
-
setBadgeCount(
int count) → Future< void> -
Sets the badge count of the app icon.
override
-
showRedDot(
) → Future< void> -
Shows a dot on the app icon without a count, where the platform
supports it.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited