NotificationRequest class
Unified notification request model
Constructors
-
NotificationRequest({required String id, required String title, required String body, NotificationImage? image, bool imageEnabled = false, List<
NotificationAction> ? actions, bool buttonsEnabled = false, String? categoryId, Map<String, dynamic> ? payload, String? sound, int? badge, NotificationPriority priority = NotificationPriority.defaultPriority, bool showWhenForeground = true}) -
const
-
NotificationRequest.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
actions
→ List<
NotificationAction> ? -
Optional list of action buttons
final
- badge → int?
-
Optional badge number (iOS/macOS)
final
- body → String
-
Notification body text
final
-
Whether buttons feature is enabled
final
- categoryId → String?
-
Optional category identifier for grouping notifications
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this notification
final
- image → NotificationImage?
-
Optional image to display
final
- imageEnabled → bool
-
Whether image feature is enabled
final
-
payload
→ Map<
String, dynamic> ? -
Optional payload data
final
- priority → NotificationPriority
-
Priority level (Android)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showWhenForeground → bool
-
Whether notification should show when app is in foreground
final
- sound → String?
-
Optional sound name
final
- title → String
-
Notification title
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited