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