Is there a constant for max/min int/double value in dart?

前端 未结 3 755
南笙
南笙 2020-12-20 12:01

Is there a constant in dart that tells us what is the max/min int/double value ?

Something like double.infinity but instead double.maxValue

3条回答
  •  孤城傲影
    2020-12-20 12:35

    here you are the int64 max value:

    const int int64MaxValue = 9223372036854775807;
    

提交回复
热议问题