The `hashCode` property returns the hash code for this BigInt object.
The syntax of BigInt.hashCode property is:
int hashCode
This hashCode property of BigInt the hash code for this object.
BigInt.hashCode returns value of type int
.
In this example,
bigInt
with the value 12345678901234567890.hashCode
property to get the hash code for the BigInt.void main() {
BigInt bigInt = BigInt.parse('12345678901234567890');
print('Hash code for BigInt: ${bigInt.hashCode}');
}
Hash code for BigInt: 12345678901234567890
In this Dart tutorial, we learned about hashCode property of BigInt: the syntax and few working examples with output and detailed explanation for each example.