plusSeconds method
Adds seconds to the time component.
Example:
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final result = dt.plusSeconds(30);
Implementation
LocalDateTime plusSeconds(int seconds) => plus(Duration(seconds: seconds));
Adds seconds to the time component.
final dt = LocalDateTime.of(2024, 6, 27, 14, 30);
final result = dt.plusSeconds(30);
LocalDateTime plusSeconds(int seconds) => plus(Duration(seconds: seconds));