EverySkipInvalidModifier<T extends Every, V extends DateValidator> class
Class that wraps an Every generator and adds a DateValidator that will be used to invalidate the generated dates.
It will return the next DateTime that matches the every pattern and is not valid for the invalidator.
- Inheritance
-
- Object
- Every
- EveryModifier<
T> - EveryModifierInvalidator<
T> - EverySkipInvalidModifier
- Implemented types
- Mixed-in types
Constructors
- EverySkipInvalidModifier({required T every, required DateValidator invalidator})
-
Class that wraps an Every generator and adds a DateValidator that will
be used to invalidate the generated dates.
const
Properties
- every → T
-
The base generator for this EveryModifier.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidator → DateValidator
-
The DateValidator that will be used to invalidate the generated dates.
finalinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- 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
-
filterValidDates(
Iterable< DateTime> dates) → Iterable<DateTime> -
Returns the valid dates for this DateValidator in
dates.inherited -
invalid(
DateTime date) → bool -
Returns
trueif thedateis invalid for the every (if it is a DateValidator, like an EveryDateValidator, for example) and valid for the invalidator.override -
next(
DateTime date, {DateTime? limit}) → DateTime -
Returns the next instance of the given
dateconsidering the every base process. If thedateis valid for the invalidator, a new DateTime will be returned.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 the every base process. If thedateis valid for the invalidator, a new DateTime will be returned.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 and is not
valid for the invalidator.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
valid(
DateTime date) → bool -
Returns
trueif thedateis valid for the every (if it is a DateValidator, like an EveryDateValidator, for example) and not valid for the invalidator.override -
validsIn(
Iterable< DateTime> dates) → Iterable<DateTime> -
Returns the valid dates for this DateValidator in
dates.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override