add method
Returns a copy of this with the duration
added.
final date = LocalDateTime(2023, 4, 1, 20, 3);
date.add(Duration(days: 1, hours: 2)); // 2023-04-02 22:03
Implementation
@useResult LocalDateTime add(Duration duration) => LocalDateTime._(_native.add(duration));