BrewRecipe class

The details and parts of brewing coffee.

Example:

var recipe = BrewRecipe(
  bean: Bean(
    roast: Roast.light,
    roaster: 'My Favorite Local Roaster',
    name: 'Market Blend',
  ),
  beanWeight: 30.1,
  waterWeight: 504,
);
var ratio = recipe.ratio // about 16.7

Constructors

BrewRecipe({required Bean bean, required double beanWeight, required double waterWeight, BrewMethod? method, double? grindSize, Grinder? grinder})
The details and parts of brewing coffee.

Properties

bean Bean
The bean this recipe is using.
final
beanWeight double
The bean's weight for this recipe.
final
grinder Grinder?
Grinder used for this recipe.
no setter
grindSize double?
The grind size this recipe is using.
no setter
hashCode int
The hash code for this object.
no setterinherited
method BrewMethod?
The brew method of this coffee.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
ratio double
A the bean-to-water ratio for this recipe.
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
waterWeight double
The water's weight for this recipe.
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