CronSpec constructor

CronSpec({
  1. String? cronString,
  2. Iterable<CronSchedule>? schedules,
})

Implementation

factory CronSpec({
  $core.String? cronString,
  $core.Iterable<CronSchedule>? schedules,
}) {
  final _result = create();
  if (cronString != null) {
    _result.cronString = cronString;
  }
  if (schedules != null) {
    _result.schedules.addAll(schedules);
  }
  return _result;
}