Notificator class
Util for displaying notifications for Android and iOS.
Constructors
- Notificator({required OnNotificationTapCallback onNotificationTapCallback, OnPermissionDeclineCallback? onPermissionDecline, IOSNotification? iosNotification, AndroidNotification? androidNotification, PlatformWrapper? platform, MethodChannel? channel})
Properties
- androidNotification ↔ AndroidNotification?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosNotification ↔ IOSNotification?
-
getter/setter pair
- onNotificationTapCallback → OnNotificationTapCallback
-
Callback notification clicks.
final
- onPermissionDecline → OnPermissionDeclineCallback?
-
Callback notification decline(iOS only).
final
- platform → PlatformWrapper
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
init(
{MethodChannel? methodChannel}) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermissions(
{bool? requestSoundPermission, bool? requestAlertPermission}) → Future< bool?> - Request notification permissions (iOS only).
-
show(
int id, String title, String body, {String? imageUrl, Map< String, String> ? data, NotificationSpecifics? notificationSpecifics}) → Future - Show notification.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited