ScheduleCalculator class

Computes the next run time for schedule entries.

The calculator uses the specification defined in the ScheduleEntry and applies temporal logic to find the first candidate timestamp that is strictly after the provided reference time.

Constructors

ScheduleCalculator({Random? random, ScheduleTimezoneResolver? timezoneResolver, SolarCalculator? solarCalculator})
Creates a schedule calculator.

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

nextRun(ScheduleEntry entry, DateTime now, {bool includeJitter = true}) → DateTime
Calculates the next run time for a schedule entry relative to now.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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