From 01090b76d6fb53c3363b75945a1e1b5927d809ad Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 30 Jul 2024 00:47:01 -0400 Subject: [PATCH] Fix casting issue --- pub_stats/lib/repo/database_repo.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pub_stats/lib/repo/database_repo.dart b/pub_stats/lib/repo/database_repo.dart index 5f522db..d0b5e50 100644 --- a/pub_stats/lib/repo/database_repo.dart +++ b/pub_stats/lib/repo/database_repo.dart @@ -86,7 +86,8 @@ class DatabaseRepo { if (value == null) return []; return value - .cast>() + .cast() + .map((e) => e.cast()) .map(AlertConfig.fromJson) .toList(); }