tapOnNotificationByIndex method

Future<void> tapOnNotificationByIndex(
  1. int index, {
  2. Duration? timeout,
})

Searches for the index-th visible notification and taps on it.

Notification shade has to be opened first with openNotifications.

See also:

Implementation

Future<void> tapOnNotificationByIndex(int index, {Duration? timeout}) {
  return platform.action.mobile(
    android: () =>
        platform.android.tapOnNotificationByIndex(index, timeout: timeout),
    ios: () => platform.ios.tapOnNotificationByIndex(index, timeout: timeout),
  );
}