Weekday enum
Weekday constants that are returned by DateTime.weekday method.
- Inheritance
- Implemented types
- Available extensions
Values
- monday → const Weekday
-
Monday.
const Weekday(DateTime.monday, generator: WeekGenerator()) - tuesday → const Weekday
-
Tuesday.
const Weekday(DateTime.tuesday, generator: WeekGenerator(weekStart: DateTime.tuesday)) - wednesday → const Weekday
-
Wednesday.
const Weekday(DateTime.wednesday, generator: WeekGenerator(weekStart: DateTime.wednesday)) - thursday → const Weekday
-
Thursday.
const Weekday(DateTime.thursday, generator: WeekGenerator(weekStart: DateTime.thursday)) - friday → const Weekday
-
Friday.
const Weekday(DateTime.friday, generator: WeekGenerator(weekStart: DateTime.friday)) - saturday → const Weekday
-
Saturday.
const Weekday(DateTime.saturday, isWeekend: true, generator: WeekGenerator(weekStart: DateTime.saturday)) - sunday → const Weekday
-
Sunday.
const Weekday(DateTime.sunday, isWeekend: true, generator: WeekGenerator(weekStart: DateTime.sunday))
Properties
- dateTimeValue → int
-
The value of the weekday on the DateTime class.
final
- every → EveryWeekday
-
Returns the EveryWeekday that corresponds to this weekday.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isWeekend → bool
-
Whether this weekday is a weekend.
final
- isWorkday → bool
-
Whether this weekday is a workday.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - next → Weekday
-
Returns the Weekday next to this.
no setter
- previous → Weekday
-
Returns the Weekday previous to this.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validator → DateValidatorWeekday
-
Returns the DateValidatorWeekday that corresponds to this weekday.
no setter
- weekGenerator → WeekGenerator
-
Generator that returns a WeekPeriod that starts on this weekday.
final
Methods
-
compareTo(
Weekday other) → int -
Compares this object to another object.
override
-
fromWeekOf(
DateTime date) → DateTime -
Returns the same weekday of the given week that
dateis in. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
occrurencesIn(
int year, int month) → int -
Returns the amount of weekdays correspondent to this on the given
monthofyear. -
occurrencesIn(
int year, int month) → int -
Returns the amount of weekdays correspondent to this on the given
monthofyear. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
int days) → Weekday -
Returns the Weekday that corresponds to this added
days. Eg.: -
operator -(
int days) → Weekday -
Returns the Weekday that corresponds to this subtracted
days. Eg.: -
operator <(
Weekday other) → bool - Returns true if this weekday is before than other.
-
operator <=(
Weekday other) → bool - Returns true if this weekday is before or equal to other.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >(
Weekday other) → bool - Returns true if this weekday is after other.
-
operator >=(
Weekday other) → bool - Returns true if this weekday is after or equal to other.