To switch to a new route, use the Navigator. push() method. The push() method adds a Route to the stack of routes managed by the Navigator .
To switch to a new route, use the Navigator. push() method. The push() method adds a Route to the stack of routes managed by the Navigator .