NotificationResult class
Result of sending a notification.
Constructors
-
NotificationResult({required String notificationId, required bool accepted, required NotificationStatus status, String? error, Map<
NotificationChannel, ChannelDeliveryResult> channelResults = const {}}) -
const
-
NotificationResult.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accepted → bool
-
Whether the notification was accepted for delivery.
final
-
channelResults
→ Map<
NotificationChannel, ChannelDeliveryResult> -
Delivery results per channel.
final
- error → String?
-
Error message if failed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDelivered → bool
-
Check if notification was successfully delivered.
no setter
- isFailed → bool
-
Check if notification failed.
no setter
- notificationId → String
-
Notification ID.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → NotificationStatus
-
Current status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited