From 44c28ad1068ad40cf391b7a8a1b52f2dbdb6bee8 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Sat, 30 May 2020 10:39:00 +0000 Subject: [PATCH] isExist fix --- lib/entity_collection.class.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entity_collection.class.dart b/lib/entity_collection.class.dart index 8480b83..96dd8e9 100644 --- a/lib/entity_collection.class.dart +++ b/lib/entity_collection.class.dart @@ -149,7 +149,7 @@ class EntityCollection { } bool isExist(String entityId) { - return _allEntities[entityId] != null; + return _allEntities.containsKey(entityId); } List getByDomains({List includeDomains: const [], List excludeDomains: const [], List stateFiler}) {