findOldRoutePage<T extends Object?> method

RoutePage<T?>? findOldRoutePage<T extends Object?>(
  1. RoutePage<T?> page
)

Implementation

RoutePage<T?>? findOldRoutePage<T extends Object?>(RoutePage<T?> page) {
  return pages
      .whereType<RoutePage<T?>>()
      .singleWhereOrNull((RoutePage<T?> element) => element == page);
}