EveryOverrideWrapper<T extends Every> class
Class that wraps an Every generator and adds a DateValidator that will be used to invalidate the generated dates and an overrider that will be used instead.
When the invalidator invalidates the generated dates, the overrider will be used instead.
- Inheritance
-
- Object
- EveryModifier<
T> - EveryModifierInvalidator<
T> - EveryOverrideWrapper
- Mixed in types
Constructors
- EveryOverrideWrapper({required T every, required DateValidator invalidator, required T overrider})
-
Class that wraps an Every generator and adds a DateValidator that will
be used to invalidate the generated dates and an overrider that will be
used instead.
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
- overrider → T
-
The every used instead of the original when the generated date is valid
for the invalidator.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- 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
-
next(
DateTime date, {DateTime? limit}) → DateTime -
Generates the next instance of the given
date
considering the every base process. If thedate
is valid for the invalidator, the overrider next will be used instead of the every.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
previous(
DateTime date, {DateTime? limit}) → DateTime -
Generates the previous instance of the given
date
considering the every base process. If thedate
is valid for the invalidator, the overrider previous will be used instead of the every.override -
processDate(
DateTime date, DateDirection direction, {DateTime? limit}) → DateTime -
When the
date
is valid for the invalidator, the overrider will be used instead of every.override -
startDate(
DateTime date, {DateTime? limit}) → DateTime -
Generates the start date of the every base process.
If the
date
is valid for the invalidator, the overrider startDate will be used instead of the every.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override