push method

dynamic push(
  1. Route route,
  2. Element element,
  3. Route? previousRoute
)

Implementation

push(Route route, Element element, Route? previousRoute) {
  Page page = Page(route, element);
  _stack.add(page);
  _task.addpush(page, page.previous);
}