EveryDueWorkdayMonth class

Class that processes DateTime so that the addMonths always returns the next month's with the DateTime.day being the dueWorkday workday of the month clamped to fit in the length of the next month.

Inheritance
Implemented types
Mixed-in types

Constructors

EveryDueWorkdayMonth(int dueWorkday)
Returns a EveryDueWorkdayMonth with the given dueWorkday.
const
EveryDueWorkdayMonth.from(DateTime date, {WorkdayDirection direction = WorkdayDirection.forward})
Returns a EveryDueWorkdayMonth with the dueWorkday being the workday (monday, tuesday, wednesday, thursday or friday) of the given month.
factory

Properties

dueWorkday int
The expected workday of the month.
finalinherited
exact bool
If true, the workday of the month must be exactly this dueWorkday. If false, and the dueWorkday is greater than the workdays in month, the DateTime will be valid if the DateTime.day is the last workday of the month.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inexact bool
Returns whether the DateTime passed to valid or invalid can be inexact.
no setterinherited
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
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 setterinherited

Methods

addMonths(DateTime date, int months) DateTime
This mixin's implementation of Every.next and Every.previous.
override
addYears(DateTime date, int years) DateTime
This mixin's implementation of Every.next and Every.previous.
inherited
compareTo(DateValidatorDueWorkdayMonth other) int
Compares this object to another object.
inherited
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 instance of the given date considering this Every base process.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous(DateTime date) DateTime
Returns the previous instance of the given date considering this Every base process.
override
startDate(DateTime date) DateTime
Returns the next DateTime that matches the Every pattern.
override
toString() String
A string representation of this object.
override
valid(DateTime date) bool
Returns true if the date is valid for this DateValidator.
inherited
validsIn(Iterable<DateTime> dates) Iterable<DateTime>
Returns the valid dates for this DateValidator in dates.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited