hashCode property

  1. @override
int get hashCode
override

Returns a hash code for this Quantity instance.

The hash code is generated based on the runtimeType, the numerical _value, and the _unit. This is consistent with the operator == implementation: if two Quantity objects are equal according to ==, they will have the same hash code.

Implementation

@override
int get hashCode => Object.hash(runtimeType, _value, _unit);