getNotifications method

Future<List<Notification>> getNotifications()

Returns notifications that are visible in the notification shade.

Notification shade has to be opened with openNotifications.

Implementation

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