Notifications class
- Annotations
-
- @freezed
Constructors
-
Notifications({required List<
Notification> notifications, String? cursor, DateTime? seenAt}) -
constfactory
-
Notifications.fromJson(Map<
String, Object?> json) -
factory
Properties
-
copyWith
→ $NotificationsCopyWith<
Notifications> -
no setterinherited
- cursor → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
notifications
→ List<
Notification> -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seenAt → DateTime?
-
no setterinherited
Methods
-
group(
{NotificationReasonFilter? reasonFilter}) → GroupedNotifications -
Groups a list of notifications based on their
reason
andreasonSubject
. -
groupByHour(
int hour, {NotificationReasonFilter? reasonFilter}) → GroupedNotifications -
Groups a list of notifications based on their
reason
andreasonSubject
and byhour
. -
groupByMinute(
int minute, {NotificationReasonFilter? reasonFilter}) → GroupedNotifications -
Groups a list of notifications based on their
reason
andreasonSubject
and byminute
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited