nextWeekday method

Moment nextWeekday(
  1. int weekday
)

Returns new Moment instance of nearest nth weekday in the future

If nth day is today, will return 7 days in the future.

Implementation

Moment nextWeekday(int weekday) => forcedSuperType
    .nextWeekday(weekday)
    .toMoment(localization: setLocalization);