Number hashcode Property


Advertisements

The property returns an integer representing the hash code for a numerical value.

Syntax

num.hashcode

Example

void main() { 
   int n = 5000; 
   print(n.hashCode); 
}  

It will produce the following output

The following output is displayed on successful execution of the code.

5000
dart_programming_numbers.htm
Advertisements