MethodChannelBadgeKit class
An implementation of BadgeKitPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- BadgeKitPlatform
- MethodChannelBadgeKit
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllNotifications(
) → Future< void> -
Removes all delivered notifications from the notification center.
override
-
clearBadge(
{bool removeNotifications = false}) → Future< void> -
Clears the app icon badge.
override
-
clearNotificationsByTag(
String tag) → Future< void> -
Removes delivered notifications with the given
tagfrom the notification center.override -
clearNotificationsByTags(
List< String> tags) → Future<void> -
Removes delivered notifications matching any of the given
tagsfrom the notification center.override -
isBadgeSupported(
) → Future< bool> -
Whether the current device/launcher supports app icon badges.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBadge(
int count) → Future< void> -
Sets the app icon badge to
count.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited