endOfLocalWeek method

Moment endOfLocalWeek([
  1. int? weekStart
])

Returns end of the week based on localization.weekStart. You can override this with weekStart

Returned object will have same timezone as this

Implementation

Moment endOfLocalWeek([int? weekStart]) {
  return forcedSuperType
      .endOfLocalWeek(weekStart ?? localization.weekStart)
      .toMoment(localization: setLocalization);
}