pushNamed method

void pushNamed(
  1. String name, {
  2. Map<String, String> params = const <String, String>{},
  3. Map<String, dynamic> queryParams = const <String, dynamic>{},
  4. Object? extra,
})

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,
    );