Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Feb 21, 2024
1 parent b24b601 commit 313a582
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/src/kee_vault_model/browser_entry_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class BrowserEntrySettings {
behaviour.hashCode ^
authenticationMethods.hashCode ^
realm.hashCode ^
matcherConfigs.hashCode ^
const ListEquality().hash(matcherConfigs) ^ //TODO: all other lists?
includeUrls.hashCode ^
excludeUrls.hashCode ^
fields.hashCode;
Expand Down
14 changes: 7 additions & 7 deletions lib/src/kee_vault_model/field_matcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ class FieldMatcher {
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
final listEquals = const DeepCollectionEquality().equals;
final unOrdDeepEq = const DeepCollectionEquality.unordered().equals;

return other is FieldMatcher &&
other.matchLogic == matchLogic &&
listEquals(other.ids, ids) &&
listEquals(other.names, names) &&
listEquals(other.types, types) &&
listEquals(other.queries, queries) &&
listEquals(other.labels, labels) &&
listEquals(other.autocompleteValues, autocompleteValues) &&
unOrdDeepEq(other.ids, ids) &&
unOrdDeepEq(other.names, names) &&
unOrdDeepEq(other.types, types) &&
unOrdDeepEq(other.queries, queries) &&
unOrdDeepEq(other.labels, labels) &&
unOrdDeepEq(other.autocompleteValues, autocompleteValues) &&
other.maxLength == maxLength &&
other.minLength == minLength;
}
Expand Down

0 comments on commit 313a582

Please sign in to comment.