Notification class

Annotations
  • @freezed

Constructors

Notification({required String id, required NotificationType type, required DateTime createdAt, required Account account, Status? status, Report? report})
const
factory
Notification.fromJson(Map<String, Object?> json)
factory

Properties

account Account
The account that performed the action that generated the notification.
no setterinherited
copyWith → $NotificationCopyWith<Notification>
no setterinherited
createdAt DateTime
The timestamp of the notification.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the notification in the database.
no setterinherited
report Report?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Status?
Status that was the object of the notification. Attached when type of the notification is favourite, reblog, status, mention, poll, or update.
no setterinherited
type NotificationType
The type of event that resulted in the notification.
no setterinherited

Methods

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