Dar數字hashcode屬性返回一個整數,表示數值的哈希碼。 語法 num.hashcode 示例 void main() { int n = 5000; print(n.hashCode); } 執行上面示例代碼,得到以下結果 - 5000 上一篇: Dart數字 下一篇: Dart字串