Weekday enum

The weekday of a Slot.

Inheritance
Available extensions

Values

monday → const Weekday

Monday (duh).

tuesday → const Weekday

Tuesday (duh).

wednesday → const Weekday

Wednesday (duh).

thursday → const Weekday

Thursday (duh).

friday → const Weekday

Friday (duh).

saturday → const Weekday

Saturday (duh).

sunday → const Weekday

Sunday (duh).

Properties

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

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.