DateTimeModifier.weekday constructor

DateTimeModifier.weekday(
  1. int weekday
)

The "weekday" modifier shifts the date forward to the next date where the weekday is the weekday provided here.

The weekday parameter must be a valid weekday from DateTime.monday to DateTime.sunday.

If the source date is on the desired weekday, no transformation happens.

Implementation

DateTimeModifier.weekday(int weekday) : this._('weekday ${weekday % 7}');