Weekday enum

Represents days of the week with ISO 8601 numbering (Monday = 1)

Inheritance
Available extensions

Values

monday → const Weekday

Sets the first day of the week to monday

const Weekday(1)
tuesday → const Weekday

Sets the first day of the week to Tuesday

const Weekday(2)
wednesday → const Weekday

Sets the first day of the week to Wednesday

const Weekday(3)
thursday → const Weekday

Sets the first day of the week to Thursday

const Weekday(4)
friday → const Weekday

Sets the first day of the week to Friday

const Weekday(5)
saturday → const Weekday

Sets the first day of the week to Saturday

const Weekday(6)
sunday → const Weekday

Sets the first day of the week to Sunday

const Weekday(7)

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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Gets the value of the day
final

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

fromDateTime(int weekday) Weekday
Converts DateTime.weekday (1-7) to Weekday enum

Constants

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