LimitedEveryAdapter<T extends Every, V extends DateValidator> class
abstract
Abstract class that, when extended, processes DateTime with custom logic.
- Inheritance
-
- Object
- Every
- EveryDateValidator
- EveryAdapter<
T, V> - LimitedEveryAdapter
- Implemented types
- Implementers
Constructors
- LimitedEveryAdapter({required T every, required V validator})
-
Abstract class that, when extended, processes DateTime with custom logic.
const
Properties
- every → T
-
The base generator for this EveryAdapter.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validator → V
-
The validator used by this EveryAdapter.
finalinherited
Methods
-
endDate(
DateTime date, {DateTime? limit}) → DateTime -
Returns the previous DateTime that matches the Every pattern.
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
dateis invalid for this DateValidator.inherited -
next(
DateTime date, {DateTime? limit}) → DateTime -
Returns the next instance of the given
dateconsidering this Every base process.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
DateTime date, {DateTime? limit}) → DateTime -
Returns the previous instance of the given
dateconsidering this Every base process.inherited -
processDate(
DateTime date, DateDirection direction, {DateTime? limit}) → DateTime -
A method that processes
datewith custom logic.inherited -
startDate(
DateTime date, {DateTime? limit}) → DateTime -
Returns the next DateTime that matches the Every pattern.
inherited
-
throwIfLimitReached(
DateTime date, DateDirection direction, {required DateTime? limit}) → void -
Throws a DateTimeLimitReachedException if the
datehas reached thelimitin the givendirection.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
valid(
DateTime date) → bool -
Returns true if the
dateis valid for this DateValidator.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → DateValidator -
inherited