notify method
Adds the provided PlayerNotification to the notifications.
Implementation
void notify(PlayerNotification e) {
notifications.add(e);
_notificationTimers.add(
Timer(_notificationDuration, () => notifications.remove(e)),
);
}
Adds the provided PlayerNotification to the notifications.
void notify(PlayerNotification e) {
notifications.add(e);
_notificationTimers.add(
Timer(_notificationDuration, () => notifications.remove(e)),
);
}