Weekday enum

The weekday of a Slot.

Inheritance
Available extensions

Values

monday → const Weekday

Monday (duh).

const Weekday(_monday)
tuesday → const Weekday

Tuesday (duh).

const Weekday(_tuesday)
wednesday → const Weekday

Wednesday (duh).

const Weekday(_wednesday)
thursday → const Weekday

Thursday (duh).

const Weekday(_thursday)
friday → const Weekday

Friday (duh).

const Weekday(_friday)
saturday → const Weekday

Saturday (duh).

const Weekday(_saturday)
sunday → const Weekday

Sunday (duh).

const Weekday(_sunday)

Properties

dateTimeWeekday int
Returns weekday index as defined in DateTime.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
nextDate DateTime
Returns the next date of this weekday.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translate Translator
The human-readable representation of this weekday.
final

Methods

futureDates([int weeks = 1]) List<DateTime>
Returns the dates of this weekday starting from DateTime.now() until weeks weeks in the future.
getDates(DateTime start, DateTime end) List<DateTime>
Returns the dates of this weekday between start and end.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek(int index) DateTime
Returns the date of this weekday index weeks in the future. 0 means the next date (including today), 1 means the date after the next date, etc.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<Weekday>
A constant List of the values in this enum, in order of their declaration.