NotificationModel class

A model class representing a single notification instance.

The NotificationModel class encapsulates all the information needed to display a single notification, including the notification's content, schedule, action buttons, and localizations. Each instance of the class represents a single notification that can be displayed to the user.

Implementers

Constructors

NotificationModel({NotificationContent? content, NotificationSchedule? schedule, List<NotificationActionButton>? actionButtons, Map<String, NotificationLocalization>? localizations})
Creates a new instance of the NotificationModel class with the given content, schedule, action buttons, and localizations.

Properties

actionButtons List<NotificationActionButton>?
The action buttons for the notification.
no setter
content NotificationContent?
The content of the notification.
no setter
hashCode int
The hash code for this object.
no setterinherited
localizations Map<String, NotificationLocalization>?
The localizations for the notification.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schedule NotificationSchedule?
The schedule to display the notification.
no setter

Methods

fromMap(Map<String, dynamic> mapData) NotificationModel?
Imports data from a serializable object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Exports all content into a serializable object
toString() String
A string representation of this object.
inherited
validate() → void
Validates if the models has all the requirements to be considered valid

Operators

operator ==(Object other) bool
The equality operator.
inherited