routes property

Map<String, Function> routes
getter/setter pair

Implementation

static Map<String, Function> routes = {
  // Enable UniqueKey to change locale at runtime
  _home: () =>
      MaterialPageRoute(builder: (_) => HomePage(_home, key: UniqueKey())),
  _about: () =>
      MaterialPageRoute(builder: (_) => AboutPage(_about, key: UniqueKey())),
  _login: () =>
      MaterialPageRoute(builder: (_) => LoginPage(_login, key: UniqueKey()))
};