pushNamed<T extends Object?> method
Future<T?>
pushNamed<
T extends Object?>( - String path, {
- bool includePrefixMatches = false,
- OnNavigationFailure? onFailure,
})
inherited
Implementation
@optionalTypeArgs
Future<T?> pushNamed<T extends Object?>(
String path, {
bool includePrefixMatches = false,
OnNavigationFailure? onFailure,
}) {
final scope = _findPathScopeOrReportFailure<StackRouter>(
path,
includePrefixMatches: includePrefixMatches,
onFailure: onFailure,
);
if (scope != null) {
return scope.router._pushAllGuarded(
scope.matches,
onFailure: onFailure,
);
}
return SynchronousFuture(null);
}