plus method
Returns a copy of this with the units of time added.
final date = LocalDateTime(2023, 4, 10, 8);
date.plus(months: -1, hours: 1); // 2023-04-10 09:00
Implementation
@useResult LocalDateTime plus({int years = 0, int months = 0, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0}) =>
LocalDateTime._(_native.plus(
years: years,
months: months,
days: days,
hours: hours,
minutes: minutes,
seconds: seconds,
milliseconds: milliseconds,
microseconds: microseconds,
));