Range<T extends num> class
A range of numbers between defined minimum and maximum values.
Constructors
- Range(T min, T max)
-
A range of numbers between defined minimum and maximum values.
const
Properties
- center → double
-
The value at the center of the range.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- max → T
-
The maximum number in the range.
final
- min → T
-
The minimum number in the range.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → T
-
The span this range covers.
max - min
.no setter
Methods
-
interpolate(
int steps, {bool inclusive = false, double randomize = 0.0, int? seed}) → List< double> -
Returns a list of numbers spanning a defined number of
steps
between the min and max values. -
map(
double delta) → double -
Returns the value within the range at the defined
delta
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
random(
[int? seed]) → T - Generates a random number between min, inclusive, and max, exclusive.
-
secureRandom(
) → T - Generates a cryptographically secure random number between min, inclusive, and max, exclusive.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override