show method

  1. @override
Future<void> show(
  1. NeomageNotification notification
)
override

Implementation

@override
Future<void> show(NeomageNotification notification) async {
  _active[notification.id] = notification;
  _notifications.add(notification);

  if (notification.autoHide != null) {
    Future.delayed(notification.autoHide!, () {
      dismiss(notification.id);
    });
  }
}