无涯教程-Dart - hashcode函数

89 阅读1分钟

该属性返回一个整数,该整数表示数值的hashCode。

hashcode - 语法

num.hashcode

hashcode - 示例

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

它将产生以下输出-

5000

参考链接

www.learnfk.com/dart-progra…