DAY enum

Enum representation of day of week

Inheritance

Constructors

DAY({required int number})
Constructor
const

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

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
number int
ISO number of the day of week
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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