subtract method
Returns a copy of this with the duration
subtracted.
LocalDate(2023, 4, 1).subtract(Duration(days: 1)); // 2023-03-31
Implementation
@useResult LocalDate subtract(Duration duration) => LocalDate._(_native.minus(days: duration.inDays));