pushNamed method
void
pushNamed(})
Push a named route onto the page stack w/ optional parameters, e.g.
name='person', params={'fid': 'f2', 'pid': 'p1'}
Implementation
void pushNamed(
String name, {
Map<String, String> params = const <String, String>{},
Map<String, dynamic> queryParams = const <String, dynamic>{},
Object? extra,
}) =>
push(
namedLocation(name, params: params, queryParams: queryParams),
extra: extra,
);