From 7870441d5ce1eebfa05ee93a8cc57e8426e43d0b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 9 Oct 2022 16:58:16 +0300 Subject: [PATCH] Improve perfomance --- lib/redux/app/app_state.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/redux/app/app_state.dart b/lib/redux/app/app_state.dart index cfe89d15220..169886a8f30 100644 --- a/lib/redux/app/app_state.dart +++ b/lib/redux/app/app_state.dart @@ -980,4 +980,14 @@ class SelectionState { final String selectedId; final String filterEntityId; final EntityType filterEntityType; + + @override + bool operator ==(Object other) { + if (other is SelectionState) { + return selectedId == other.selectedId && + filterEntityId == other.filterEntityId && + filterEntityType == other.filterEntityType; + } + return false; + } }