routes property

dynamic get routes

Implementation

get routes => <String, WidgetBuilder>{
      '/': (context) => homeScreen!,
      '/lobby_screen': (context) {
        final args = ModalRoute.of(context)!.settings.arguments
            as Map<String, dynamic>;
        return lobbyScreenGenerator(
          context,
          args['room'],
        );
      },
      '/join_room_screen': (context) => joinRoomScreen!,
    };