workweekDay method

String workweekDay({
  1. required DateTime referenceDateTime,
})

Generates a Cron expression to be played only on workweek days from now

Implementation

String workweekDay({required DateTime referenceDateTime}) {
  return '${DateFormat('s m H ? * ').format(referenceDateTime)}$MON-$FRI *';
}