style_cron_job library

Classes

CronJobController
CronJobController manages multiple cron jobs processes not started before calling start
CronJobRunner
Runner for each cron jobs onCall call in period
CronTimePeriod
Cron Time Period
EachDay
Run each day one time of defined hour, minute, second
EachHour
Run each hour one time of defined minute, second
EachMinute
Run each minute one time of defined second
EachMonth
Run each month one time of defined day , hour, minute, second
EachWeek
Run each week one time of defined weekday , hour, minute, second
EveryXDay
EveryXHour
EveryXMinute
EveryXMonth
EveryXSecond
EveryXWeek

Mixins

EveryX

Properties

each → _EachPeriodBuilder
each is used for each month, week, day, hour, minute and second.
no setter
every → _EveryPeriodBuilder
every is used for needs such as once every 3 days, once every 2 months.
no setter

Typedefs

CronCallback = FutureOr<void> Function(DateTime time)
CronCondition = bool Function(DateTime time)
Add condition to period Checking condition on calling