add method
Returns the result of adding a duration to this zoned date and time.
time
: The duration to add
Returns: A new ZonedDateTime representing the result of the addition.
Implementation
ZonedDateTime add(Time time) => ZonedDateTime(toInstant() + time, zone, calendar);