hashCode property

  1. @override
int get hashCode
override

Must agree with operator ==, and therefore with nativeType, or a value that compares equal still lands in a different bucket — which is precisely the defect this pair fixes.

Implementation

@override
int get hashCode => nativeType.hashCode;