Notification class
A notification that was created by this client.
Constructors
- Notification(NotificationsClient client, int id)
- Creates a new notification object. You should not need to use this constructor directly and instead use a value returned from NotificationsClient.notify. Creating a notification from an ID may be required if you had no manage a notification created by other code.
Properties
-
action
→ Future<
String> -
The action that was chosen by the user.
read-only
- client → NotificationsClient
-
The client this notification is part of.
final
-
closeReason
→ Future<
NotificationClosedReason> -
The reason the notification was closed.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id → int
-
Id number assigned to this notification.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
close(
) → Future< void> - Closes this notification.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited