pushNamed method
Push a new page with MaterialPageRoute and the given name
Example: context.pushNamed(MyPage.routeName)
Implementation
void pushNamed(String routeName) => Navigator.of(this).pushNamed(routeName);
Push a new page with MaterialPageRoute and the given name
Example: context.pushNamed(MyPage.routeName)
void pushNamed(String routeName) => Navigator.of(this).pushNamed(routeName);