Schedule class
The cron schedule.
Constructors
- Schedule({dynamic seconds, dynamic minutes, dynamic hours, dynamic days, dynamic months, dynamic weekdays})
-
factory
- Schedule.parse(String cronFormat)
-
Parses the cron-formatted text and creates a schedule out of it.
factory
Properties
-
days
→ List<
int> ? -
The days a Task should be started.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hours
→ List<
int> ? -
The hours a Task should be started.
final
-
minutes
→ List<
int> ? -
The minutes a Task should be started.
final
-
months
→ List<
int> ? -
The months a Task should be started.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
seconds
→ List<
int> ? -
The seconds a Task should be started.
final
-
weekdays
→ List<
int> ? -
The weekdays a Task should be started.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRunAt(
DateTime time) → bool - Test if this schedule should run at the specified time.
-
toCronString(
{bool hasSecond = false}) → String - Converts the schedule into a cron-formatted string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited