DAY enum
Enum representation of day of week
Values
- monday → const DAY
-
Monday
const DAY(number: 1)
- tuesday → const DAY
-
Tuesday
const DAY(number: 2)
- wednesday → const DAY
-
Wednesday
const DAY(number: 3)
- thursday → const DAY
-
Thursday
const DAY(number: 4)
- friday → const DAY
-
Friday
const DAY(number: 5)
- saturday → const DAY
-
Saturday
const DAY(number: 6)
- sunday → const DAY
-
Sunday
const DAY(number: 7)
Properties
Methods
-
acronym(
[String? locale]) → String - Return the first letter of day - useful for alarm or smaller views.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shortTitle(
[String? locale]) → String - Return the abbreviation of day - useful for calendar views.
-
title(
[String? locale]) → String - Returns the day of week title based on locale
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromNumber(
int number) → DAY - Returns the DAY enum value based on day of week iso number