created different models
This commit is contained in:
16
lib/models/ingredient.dart
Normal file
16
lib/models/ingredient.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import '../src/enums.dart' show IngredientType;
|
||||
import 'unit.dart';
|
||||
|
||||
class Ingredient {
|
||||
final String title;
|
||||
final List<Unit> possibleUnits;
|
||||
final List<String> preferredBrands;
|
||||
final IngredientType type;
|
||||
|
||||
Ingredient({
|
||||
required this.title,
|
||||
required this.type,
|
||||
this.possibleUnits = const [],
|
||||
this.preferredBrands = const [],
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user