WeekdayOccurrence enum

An enum wrapper in EveryWeekdayCountInMonth class.

Shows all possible values for the EveryWeekdayCountInMonth with better naming.

Inheritance
Implemented types
Mixed-in types
Available extensions

Values

firstMonday → const WeekdayOccurrence

The first Monday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.monday, week: Week.first))
firstTuesday → const WeekdayOccurrence

The first Tuesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.tuesday, week: Week.first))
firstWednesday → const WeekdayOccurrence

The first Wednesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.wednesday, week: Week.first))
firstThursday → const WeekdayOccurrence

The first Thursday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.thursday, week: Week.first))
firstFriday → const WeekdayOccurrence

The first Friday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.friday, week: Week.first))
firstSaturday → const WeekdayOccurrence

The first Saturday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.saturday, week: Week.first))
firstSunday → const WeekdayOccurrence

The first Sunday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.sunday, week: Week.first))
secondMonday → const WeekdayOccurrence

The second Monday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.monday, week: Week.second))
secondTuesday → const WeekdayOccurrence

The second Tuesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.tuesday, week: Week.second))
secondWednesday → const WeekdayOccurrence

The second Wednesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.wednesday, week: Week.second))
secondThursday → const WeekdayOccurrence

The second Thursday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.thursday, week: Week.second))
secondFriday → const WeekdayOccurrence

The second Friday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.friday, week: Week.second))
secondSaturday → const WeekdayOccurrence

The second Saturday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.saturday, week: Week.second))
secondSunday → const WeekdayOccurrence

The second Sunday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.sunday, week: Week.second))
thirdMonday → const WeekdayOccurrence

The third Monday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.monday, week: Week.third))
thirdTuesday → const WeekdayOccurrence

The third Tuesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.tuesday, week: Week.third))
thirdWednesday → const WeekdayOccurrence

The third Wednesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.wednesday, week: Week.third))
thirdThursday → const WeekdayOccurrence

The third Thursday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.thursday, week: Week.third))
thirdFriday → const WeekdayOccurrence

The third Friday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.friday, week: Week.third))
thirdSaturday → const WeekdayOccurrence

The third Saturday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.saturday, week: Week.third))
thirdSunday → const WeekdayOccurrence

The third Sunday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.sunday, week: Week.third))
fourthMonday → const WeekdayOccurrence

The fourth Monday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.monday, week: Week.fourth))
fourthTuesday → const WeekdayOccurrence

The fourth Tuesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.tuesday, week: Week.fourth))
fourthWednesday → const WeekdayOccurrence

The fourth Wednesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.wednesday, week: Week.fourth))
fourthThursday → const WeekdayOccurrence

The fourth Thursday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.thursday, week: Week.fourth))
fourthFriday → const WeekdayOccurrence

The fourth Friday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.friday, week: Week.fourth))
fourthSaturday → const WeekdayOccurrence

The fourth Saturday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.saturday, week: Week.fourth))
fourthSunday → const WeekdayOccurrence

The fourth Sunday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.sunday, week: Week.fourth))
lastMonday → const WeekdayOccurrence

The last Monday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.monday, week: Week.last))
lastTuesday → const WeekdayOccurrence

The last Tuesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.tuesday, week: Week.last))
lastWednesday → const WeekdayOccurrence

The last Wednesday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.wednesday, week: Week.last))
lastThursday → const WeekdayOccurrence

The last Thursday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.thursday, week: Week.last))
lastFriday → const WeekdayOccurrence

The last Friday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.friday, week: Week.last))
lastSaturday → const WeekdayOccurrence

The last Saturday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.saturday, week: Week.last))
lastSunday → const WeekdayOccurrence

The last Sunday of the month.

const WeekdayOccurrence(EveryWeekdayCountInMonth(day: Weekday.sunday, week: Week.last))

Properties

day Weekday
The expected day of the week.
no setteroverride
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
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setter
week Week
The expected week of the month.
no setteroverride

Methods

addMonths(DateTime date, int months) DateTime
Returns the date - DateTime.month + months with the week occurrence of the day.
override
addYears(DateTime date, int years) DateTime
This mixin's implementation of Every.next and Every.previous.
override
compareTo(DateValidatorWeekdayCountInMonth other) int
Compares this object to another object.
override
filterValidDates(Iterable<DateTime> dates) Iterable<DateTime>
Returns the valid dates for this DateValidator in dates.
inherited
invalid(DateTime date) bool
Returns true if the date is invalid for this DateValidator.
inherited
next(DateTime date) DateTime
Returns the next date that fits the day and the week.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous(DateTime date) DateTime
Returns the previous date that fits the day and the week.
override
startDate(DateTime date) DateTime
Returns the next date that fits the day and the week.
override
toString() String
A string representation of this object.
inherited
valid(DateTime date) bool
Returns true if the date is valid for this DateValidator.
override
validsIn(Iterable<DateTime> dates) Iterable<DateTime>
Returns the valid dates for this DateValidator in dates.
inherited

Operators

operator <(WeekdayOccurrence other) bool
Returns true if this week is before others WeekdayOccurrence.week, or if they are the same and this day is before others WeekdayOccurrence.day.
operator <=(WeekdayOccurrence other) bool
Returns true if this week is before or equal to others WeekdayOccurrence.week, or if they are the same and this day is before or equal to others WeekdayOccurrence.day.
operator ==(Object other) bool
The equality operator.
inherited
operator >(WeekdayOccurrence other) bool
Returns true if this week is after others WeekdayOccurrence.week, or if they are the same and this day is after others WeekdayOccurrence.day.
operator >=(WeekdayOccurrence other) bool
Returns true if this week is after or equal to others WeekdayOccurrence.week, or if they are the same and this day is after or equal to others WeekdayOccurrence.day.

Constants

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