pushNamed<T extends Object?> method

  1. @Deprecated('Use pushPath instead')
Future<T?> pushNamed<T extends Object?>(
  1. String path, {
  2. bool includePrefixMatches = false,
  3. OnNavigationFailure? onFailure,
})

Adds corresponding page to given path to _pages stack

Implementation

@Deprecated('Use pushPath instead')
Future<T?> pushNamed<T extends Object?>(
  String path, {
  bool includePrefixMatches = false,
  OnNavigationFailure? onFailure,
}) =>
    pushPath<T>(
      path,
      includePrefixMatches: includePrefixMatches,
      onFailure: onFailure,
    );