diff --git a/lib/helpers/serialization/base_serialization_helper.dart b/lib/helpers/serialization/base_serialization_helper.dart index 4be764d..b49fcee 100644 --- a/lib/helpers/serialization/base_serialization_helper.dart +++ b/lib/helpers/serialization/base_serialization_helper.dart @@ -105,7 +105,7 @@ abstract class BaseSerializationHelper { await _loadCache(); // Insert or replace the element - _cache.where((element) => !isToReplace(element)).toList(); + _cache = _cache.where((element) => !isToReplace(element)).toList(); _cache.add(newEl); _cache.sort();