20 lines
355 B
Dart
20 lines
355 B
Dart
import 'unit.dart';
|
|
|
|
class Ingredient {
|
|
final String title;
|
|
List<Unit> possibleUnits;
|
|
List<String> preferredBrands;
|
|
|
|
Ingredient({
|
|
required this.title,
|
|
required this.possibleUnits,
|
|
this.preferredBrands = const [],
|
|
});
|
|
|
|
@override
|
|
bool operator ==(other) {
|
|
Ingredient i = other as Ingredient;
|
|
return title == i.title;
|
|
}
|
|
}
|