DayOfWeek enum

Day of the week.

曜日。

Inheritance

Constructors

DayOfWeek(int value)
Day of the week.
const

Values

monday → const DayOfWeek

Monday.

月曜日。

const DayOfWeek(1)
tuesday → const DayOfWeek

Tuesday.

火曜日。

const DayOfWeek(2)
wednesday → const DayOfWeek

Wednesday.

水曜日。

const DayOfWeek(3)
thursday → const DayOfWeek

Thursday.

木曜日。

const DayOfWeek(4)
friday → const DayOfWeek

Friday.

金曜日。

const DayOfWeek(5)
saturday → const DayOfWeek

Saturday.

土曜日。

const DayOfWeek(6)
sunday → const DayOfWeek

Sunday.

日曜日。

const DayOfWeek(7)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName String
The name of the day of the week.
no setter
value int
The value of the day of the week in DateTime.
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(DateTime dateTime) DayOfWeek
The day of the week from the DateTime.
fromInt(int weekDay) DayOfWeek
The day of the week from the int.

Constants

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