notify method

void notify(
  1. PlayerNotification e
)

Adds the provided PlayerNotification to the notifications.

Implementation

void notify(PlayerNotification e) {
  notifications.add(e);
  _notificationTimers.add(
    Timer(_notificationDuration, () => notifications.remove(e)),
  );
}