Day class

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

Constructors

Day(DateTime date, bool closed)
Construct a new day instance.
const

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(dynamic json) Day
Read a day from parsed JSON.