pushNamed<T extends Object?> method

Future<T?> pushNamed<T extends Object?>(
  1. String name, {
  2. Map<String, String> pathParameters = const <String, String>{},
  3. Map<String, dynamic> queryParameters = const <String, dynamic>{},
  4. Object? extra,
})

Navigate to a named route onto the page stack.

Implementation

Future<T?> pushNamed<T extends Object?>(
  String name, {
  Map<String, String> pathParameters = const <String, String>{},
  Map<String, dynamic> queryParameters = const <String, dynamic>{},
  Object? extra,
}) =>
    App.goRouter?.pushNamed<T>(
      name,
      pathParameters: pathParameters,
      queryParameters: queryParameters,
      extra: extra,
    ) ??
    Future.value();