pushRoute method

bool pushRoute(
  1. AppRouteMatch<dynamic, RouteParams>? match, {
  2. bool isPage = true,
  3. required bool replace,
  4. bool notify = true,
})

Implementation

bool pushRoute(AppRouteMatch? match,
    {bool isPage = true, required bool replace, bool notify = true}) {
  if (match == null) return false;
  final route = PendingRoute(match, isPage: isPage);

  if (replace) {
    _viewStack.removeLast();
  }
  _viewStack.add(route);
  if (notify) notifyWithLimit();
  return true;
}