Number hashcode Property

  • Post author:
  • Post category:Dart
  • Post comments:1 Comment
Number hashcode Property

In this guide, we will discuss Number hashcode property. 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

Next Topic : Click Here

This Post Has One Comment

Leave a Reply