NumUtils class

Constructors

NumUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getRandomDouble(double min, double max, {bool inclusiveMin = true, bool inclusiveMax = true}) → double
获取随机小数(默认包含最大最小值)
getRandomInt(int min, int max, {bool inclusiveMin = true, bool inclusiveMax = true}) → int
获取随机整数(默认包含最大最小值)
numFormat(int num) → String
数量格式化
roundingNum(double num, int fractionDigits) → String
取消四舍五入 ignore: unused_element