Range<N extends num> class

A class that encapsulates minimum and maximum values.

Available Extensions

Constructors

Range(N least, N most)
Creates a Range starting from least to most.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
least → N
The minimum value of the Range
final
most → N
The maximum value of the Range
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clamp<V extends num>(V number) num
Constrains the number parameter to be between least and most.
contains<V extends num>(V number) bool
Checks if the number parameter is between least and most.
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