Altitude constructor

const Altitude({
  1. required int lower,
  2. required int upper,
  3. AltitudeUnit unit = AltitudeUnit.meters,
})

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,
);

Implementation

const Altitude({
  required this.lower,
  required this.upper,
  this.unit = AltitudeUnit.meters,
});