goNamed method
void
goNamed(})
Navigate to a named route w/ optional parameters, e.g.
name='person', pathParameters={'fid': 'f2', 'pid': 'p1'}
Navigate to the named route.
Implementation
void goNamed(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
String? fragment,
}) =>
/// Construct location with optional fragment, using null-safe navigation
go(
namedLocation(name,
pathParameters: pathParameters,
queryParameters: queryParameters,
fragment: fragment),
extra: extra,
);