add method

  1. @useResult
LocalDate add(
  1. Duration duration
)

Returns a copy of this with the duration added.

LocalDate(2023, 4, 1).add(Duration(days: 1)); // 2023-04-02

Implementation

@useResult LocalDate add(Duration duration) => LocalDate._(_native.plus(days: duration.inDays));