getFirstNotification method

Future<Notification> getFirstNotification()

Returns the first, topmost visible notification.

Notification shade has to be opened with openNotifications.

Implementation

Future<Notification> getFirstNotification() {
  return platform.action.mobile(
    android: platform.android.getFirstNotification,
    ios: platform.ios.getFirstNotification,
  );
}