toNamed<T> method
Future<T?>
toNamed<T>(
- String page, {
- dynamic arguments,
- dynamic id,
- bool preventDuplicates = true,
- Map<
String, String> ? parameters,
override
Implementation
@override
Future<T?> toNamed<T>(
String page, {
dynamic arguments,
dynamic id,
bool preventDuplicates = true,
Map<String, String>? parameters,
}) async {
final args = _buildPageSettings(page, arguments);
final route = _getRouteDecoder<T>(args);
if (route != null) {
return _push<T>(route);
} else {
goToUnknownPage();
}
return null;
}