NumRange<TNum extends num> class

A class that represents a range of numbers.

Includes values from min to max.

数値のレンジを表すクラス。

minからmaxまでの値を含みます。

Constructors

NumRange(TNum min, TNum max)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
max → TNum
Exit value.
final
min → TNum
Starting value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(num value) bool
Returns true if the value is in the range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator %(num? value) NumRange<num>
Returns the remainder of the division by value.
operator *(num? value) NumRange<num>?
Multiply by value.
operator +(NumRange<num>? other) NumRange<num>
Add other.
operator -(NumRange<num>? other) NumRange<num>
Subtract other.
operator /(num? value) NumRange<num>
Divide by value.
operator ==(Object other) bool
The equality operator.
override
operator ~/(num? value) NumRange<num>
Performs truncated division by value.