Bean class

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

Constructors

Bean({required String roaster, required String name, required Roast roast, PlantType type = PlantType.arabica, Continent? continent, List<Country>? countries, Altitude? altitude, Process? process, List<String>? notes})
The bean carries all the attributes of the bean from it's roast to it's origin.
const

Properties

altitude Altitude?
Altitude the bean was grown.
final
continent Continent?
Continent origin of bean.
final
countries List<Country>?
Country origin of beans.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the roast.
final
notes List<String>?
The tasting notes.
final
process Process?
How the cherries were processed.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
roast Roast
Darkness/lightness of the bean's roast.
final
roaster String
Name of the roaster.
final
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
type PlantType
Plant type be either arabica or robusta. Defaults to arabica.
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