EveryYear mixin

Processes DateTime with custom logic.

WARNING:

Only mix in your class this if your are not mixing EveryWeek or EveryMonth in your class.

Mixin all three will result in strange behavior. The last one mixed will override the next and previous methods.

Try to only implement the two that are not the main focus of your Every class.

Implemented types
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addYears(DateTime date, int years) DateTime
This mixin's implementation of Every.next and Every.previous.
next(DateTime date) DateTime
Returns the next year of the given date considering this EveryYear implementation.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous(DateTime date) DateTime
Returns the previous year of the given date considering this EveryYear implementation.
override
startDate(DateTime date) DateTime
Returns the next DateTime that matches the Every pattern.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited