Notifications class

Annotations
  • @freezed

Constructors

Notifications({required List<Notification> notifications, String? cursor, DateTime? seenAt})
const
factory
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 and reasonSubject.
groupByHour(int hour, {NotificationReasonFilter? reasonFilter}) GroupedNotifications
Groups a list of notifications based on their reason and reasonSubject and by hour.
groupByMinute(int minute, {NotificationReasonFilter? reasonFilter}) GroupedNotifications
Groups a list of notifications based on their reason and reasonSubject and by minute.
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