FakeNotification class final

One hint the fake created and sent as notification.created (13 6.3), for assertions.

Constructors

FakeNotification({required String recipient, required String kind, required String threadId, required String messageId, required bool quiet, required int count, required Set<String> devices, required JsonMap payload})
Creates the record.
const

Properties

count → int
The count of the hint; the fake does not bundle, so always 1.
final
devices → Set<String>
The devices whose live connections the event went to.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
The wire code of the kind (message, mention, dm).
final
messageId → String
The message.
final
payload → JsonMap
The payload of the event (API NotificationCreatedPayload).
final
quiet → bool
Whether the recipient was inside quiet hours.
final
recipient → String
The person the hint is for.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
threadId → String
The thread of the message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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