Notification class

Annotations
  • @_NameSource('spec')

Constructors

Notification({required List<Object?> actions, required SDNEvent event, String? profileTag, required bool read, required String roomId, required int ts})
Notification.fromJson(Map<String, Object?> json)

Properties

actions List<Object?>
The action(s) to perform when the conditions for this rule are met. See Push Rules: API.
getter/setter pair
event SDNEvent
The Event object for the event that triggered the notification.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
profileTag String?
The profile tag of the rule that matched this event.
getter/setter pair
read bool
Indicates whether the user has sent a read receipt indicating that they have read this message.
getter/setter pair
roomId String
The ID of the room in which the event was posted.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
ts int
The unix timestamp at which the event notification was sent, in milliseconds.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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