-
-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
In one of my models i have a property like this 'final Map<String, dynamic>? extra'.
How it's handling now in hashCode and ==:
hashCode
...
l$extra
==
...
final l$extra = extra;
final lOther$extra = other.extra;
if (l$extra != lOther$extra) {
return false;
}How it must be:
hashCode
...
l$extra == null ? null : const DeepCollectionEquality().hash(l$extra)
==
...
final l$extra = extra;
final lOther$extra = other.extra;
if (!const DeepCollectionEquality().equals(l$extra, lOther$extra)) {
return false;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels