Notification constructor
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.
Implementation
Notification(this.client, this.id) {
// Subscribe signals here in case this wasn't created by our client.
client._subscribeSignals();
client._notifications[id] = this;
}