DayMenu class

Models a day menu containing information about a day and the daily available meals.

Constructors

DayMenu({required Day day, required List<Meal> meals})
Construct a new day menu instance.
const
DayMenu.fromJson(dynamic json)
Read a day menu from parsed JSON.
factory

Properties

day Day
The day menu's day.
final
hashCode int
The hash code for this object.
no setterinherited
meals List<Meal>
The day menu's meals.
final
props List<Object>
The day's properties. See Equatable.props for more information.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
The day should get an automatically generated toString method, based on props. See Equatable.stringify for more information.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited