如何在dart中初始化Int64数我希望这个数字是一个Int64数字。
Int64 secs = Int64(5);
字符串但我得到了这个警告
A value of type 'int' can't be assigned to a variable of type 'Int64'. Try changing the type of the variable, or casting the right-hand type to
型
vlf7wbxs1#
你可以尝试使用dart core的BigInt。Int64也来自fixnum。
BigInt
Int64
字符串
jaxagkaj2#
可以使用toInt()。示例int result = response.result.toInt();
2条答案
按热度按时间vlf7wbxs1#
你可以尝试使用dart core的
BigInt
。Int64
也来自fixnum。字符串
jaxagkaj2#
可以使用toInt()。
示例
int result = response.result.toInt();