ExactEvery class abstract

A class to save a truncated generator of DateTimes.

This version of Every is used to generate a DateTime truncated to a specific period, such as a week, month, or year.

This can make it easier to work with specific dates that match a particular pattern, such as the last day of the month or similar.

Inheritance
Implemented types
Implementers
Annotations

Constructors

ExactEvery.new({bool exact = false})
A class to save a truncated generator of DateTimes.
const

Properties

exact bool
Returns whether the DateTime passed to valid or invalid needs to fit exactly a specific date.
finalinherited
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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.
inherited
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.
inherited
startDate(DateTime date) DateTime
Returns the next DateTime that matches the Every pattern.
inherited
toString() String
A string representation of this object.
inherited
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