Day class

Models a day containing information about whether a canteen is closed or not.

Constructors

Day({required DateTime date, required bool closed})
Construct a new day instance.
const
Day.fromJson(dynamic json)
Read a day from parsed JSON.
factory

Properties

closed bool
Whether the canteen is closed or not.
final
date DateTime
The requested date.
final
hashCode int
The hash code for this object.
no setterinherited
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