NiceNotificationItem class
A notification item data model
Constructors
-
NiceNotificationItem({required String id, required String title, String? message, NiceNotificationType type = NiceNotificationType.info, DateTime? timestamp, String? actionLabel, VoidCallback? onAction, bool read = false, Map<
String, dynamic> ? data}) -
const
Properties
- actionLabel → String?
-
final
-
data
→ Map<
String, dynamic> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- message → String?
-
final
- onAction → void Function()?
-
final
- read → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime?
-
final
- title → String
-
final
- type → NiceNotificationType
-
final
Methods
-
copyWith(
{String? id, String? title, String? message, NiceNotificationType? type, DateTime? timestamp, String? actionLabel, VoidCallback? onAction, bool? read, Map< String, dynamic> ? data}) → NiceNotificationItem -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited