hashCode property

  1. @override
int get hashCode
override

Generates a hash code based on the value and unit.

Ensures objects with the same value and unit have the same hash code.

Implementation

@override
int get hashCode => value.hashCode ^ unit.hashCode;