operator + method

  1. @useResult
LocalDate operator +(
  1. Period period
)

Returns a copy of this with the period added.

LocalDate(2023, 4, 1) + Period(days: 1); // 2023-04-02

Implementation

@useResult LocalDate operator + (Period period) => LocalDate._(_native.plus(
  years: period.years,
  months: period.months,
  days: period.days,
));