minus method

  1. @useResult
LocalDate minus({
  1. int years = 0,
  2. int months = 0,
  3. int days = 0,
})

Returns a copy of this with the units of time subtracted.

LocalDate(2023, 4, 1).minus(months: -1, days: 1); // 2023-05-01

Implementation

@useResult LocalDate minus({int years = 0, int months = 0, int days = 0}) => LocalDate._(_native.minus(
  years: years,
  months: months,
  days: days,
));