hashCode property

  1. @override
int get hashCode
override

Note: The order of the elements in the colors list is important—if the two objects have the same colors but in a different order, they will not have the same hash code.

Implementation

@override
int get hashCode => Object.hash(
      behavior,
      const DeepCollectionEquality().hash(_colors),
    );