fix linter issues
This commit is contained in:
@@ -383,13 +383,11 @@ class _CreateMatchViewState extends State<CreateMatchView> {
|
||||
|
||||
// Loads all games from the database and updates the gamesList.
|
||||
Future<void> loadGames() async {
|
||||
print("LOADING GAMES TRIGGERED");
|
||||
final result = await db.gameDao.getAllGames();
|
||||
result.sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
||||
setState(() {
|
||||
gamesList = result;
|
||||
});
|
||||
print(gamesList.map((g) => g.name).join(', '));
|
||||
print("GAMES LOADED");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user