pushRootRoute method

bool pushRootRoute(
  1. AppRouteMatch<dynamic, RouteParams>? match, {
  2. int? tab,
  3. bool isPage = true,
})

Implementation

bool pushRootRoute(AppRouteMatch? match, {int? tab, bool isPage = true}) {
  if (match == null) return false;
  final route = PendingRoute(match, isPage: isPage);

  _rootRoutes.add(route);
  _history.push(route.toHistory(currTab: tab));
  notifyWithLimit();
  return true;
}