MagentoNotification class
A notification object
- Annotations
Constructors
-
MagentoNotification.new({required String id, required MagentoNotificationType type, required String message, String? title, MagentoNotificationPriority priority = MagentoNotificationPriority.normal, Map<
String, dynamic> ? data, required DateTime timestamp, DateTime? expiresAt}) -
const
Properties
- age → Duration
-
Age of the notification
no setter
-
data
→ Map<
String, dynamic> ? -
final
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- isExpired → bool
-
Whether the notification has expired
no setter
- message → String
-
final
- priority → MagentoNotificationPriority
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
final
- title → String?
-
final
- type → MagentoNotificationType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override