Removed toString

This commit is contained in:
2025-07-20 20:38:31 +02:00
parent fd79698b30
commit fcdad2b6d2

View File

@@ -27,7 +27,7 @@ class GameManager extends ChangeNotifier {
/// with a matching id and returns it if found.
/// If no session is found, it returns null.
GameSession? getGameSessionById(String id) {
return gameList.firstWhereOrNull((session) => session.id.toString() == id);
return gameList.firstWhereOrNull((session) => session.id == id);
}
/// Removes a game session from the list and sorts it by creation date.