Dar数字hashcode属性返回一个整数,表示数值的哈希码。 语法 num.hashcode 示例 void main() { int n = 5000; print(n.hashCode); } 执行上面示例代码,得到以下结果 - 5000 上一篇: Dart数字 下一篇: Dart字符串