LimitedEveryAdapterMixin<T extends Every, V extends DateValidator> mixin
Mixin that, when used, passes the calls to the specific method on the underlying every.
Also makes the using class a LimitedEvery.
Should always be used when the every is a LimitedEvery.
- Superclass constraints
- Implemented types
-
- LimitedEveryAdapter<
T, V>
- LimitedEveryAdapter<
- Mixin applications
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.
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
dateis invalid for this DateValidator.inherited -
next(
DateTime date, {DateTime? limit}) → DateTime -
Returns the next instance of the given
dateconsidering this Every base process.override -
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.override -
processDate(
DateTime date, DateDirection direction, {DateTime? limit}) → DateTime -
A method that processes
datewith custom logic.override -
startDate(
DateTime date, {DateTime? limit}) → DateTime -
Returns the next DateTime that matches the Every pattern.
override
-
throwIfLimitReached(
DateTime date, DateDirection direction, {required DateTime? limit}) → void -
Throws a DateTimeLimitReachedException if the
datehas reached thelimitin the givendirection.override -
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