forked from markandey007/hacktoberfest_2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meals.dart
36 lines (32 loc) · 946 Bytes
/
meals.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'package:flutter/cupertino.dart';
enum Complexity { Simple, Hard, Challenging }
enum Affordability { Affordable, Pricey, Luxurious }
class Meal {
final String id;
final List<String> categories;
final String title;
final String imageUrl;
final List<String> ingredients;
final List<String> steps;
final int duration;
final Complexity complexity;
final Affordability affordability;
final bool isGlutenFree;
final bool isLactoseFree;
final bool isVegan;
final bool isVegetarian;
const Meal(
{@required this.id,
@required this.affordability,
@required this.categories,
@required this.imageUrl,
@required this.complexity,
@required this.duration,
@required this.ingredients,
@required this.isGlutenFree,
@required this.isLactoseFree,
@required this.isVegan,
@required this.isVegetarian,
@required this.steps,
@required this.title});
}