operator - method

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

Returns a copy of this with the period subtracted.

LocalDate(2023, 4, 1) - Period(days: 1); // 2023-03-31

Implementation

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