Range class

A set of ordered Quantities defined by a low and high limit.

Constructors

Range({Quantity? low, Quantity? high})
Constructs a new Range with an optional low and high limit.
Range.fromJson(JsonObject _json)
Constructs a new Range instance from the provided JSON object.

Properties

hashCode → int
The hash code for this object.
no setteroverride
high → Quantity?
The high limit. The boundary is inclusive.
no setter
json → JsonObject
Converts this Range instance to a JSON object.
no setter
low → Quantity?
The low limit. The boundary is inclusive.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Quantity? low, Quantity? high}) → Range
Creates a deep copy of this Range.
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.
override

Constants

fieldDefinitions → const List<FieldDefinition<Quantity>>
All field definitions for Range
highField → const FieldDefinition<Quantity>
Field definition for high
lowField → const FieldDefinition<Quantity>
Field definition for low