Bean constructor

const Bean({
  1. required String roaster,
  2. required String name,
  3. required Roast roast,
  4. PlantType type = PlantType.arabica,
  5. Continent? continent,
  6. List<Country>? countries,
  7. Altitude? altitude,
  8. Process? process,
  9. List<String>? notes,
})

The bean carries all the attributes of the bean from it's roast to it's origin.

Example:

var myFavoriteBean = const Bean(
  roaster: 'Patriot Coffee Roaster',
  name: 'Ethiopia Nano Challa',
  roast: Roast.lightMedium,
  countries: [Country.ET],
  altitude: Altitude(lower: 1900, upper: 2200),
  process: Process.washed,
  notes: ['Red Grape', 'Pineapple', 'Elderflower'],
);

Implementation

const Bean({
  required this.roaster,
  required this.name,
  required this.roast,
  this.type = PlantType.arabica,
  this.continent,
  this.countries,
  this.altitude,
  this.process,
  this.notes,
});