Range class

数字范围类型 闭区间 Range(min: 0, max: 1) 表示 0, 1

Constructors

Range({num min, num max})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
max num
final
min num
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

convertNumber(num value) → dynamic
判断目标数字是否在当前范围内 在范围内则返回当前数字 不在范围内则返回边界数字
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited