Altitude class

Altitude is classified by the range the coffee plant was grown at.

Example:

If coffee origin's altitude is 3,500 - 3,700 ft create an Altitude like:

var altitude = const Altitude(
  lower: 3500,
  upper: 3700,
  unit: AltitudeUnit.feet,
);

Constructors

Altitude({required int lower, required int upper, AltitudeUnit unit = AltitudeUnit.meters})
Altitude is classified by the range the coffee plant was grown at.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
lower int
The lower range of the coffee altitude. Would be the first value in this range.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
range List<int>
Two-length list to get the upper and lower range of the altitude in default units, respectively.
no setter
rangeInFeet List<int>
Two-length list to get the upper and lower range of the altitude in feet.
no setter
rangeInMeters List<int>
Two-length list to get the upper and lower range of the altitude in meters.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
unit AltitudeUnit
How this altitude's height is being tracked.
final
upper int
The upper range of the coffee altitude. Would be the second value in this range.
final

Methods

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