LocalDateTime.combine constructor

LocalDateTime.combine(
  1. LocalDate date, [
  2. LocalTime? time
])

Makes a LocalDateTime from a LocalDate and an optional LocalTime.

Uses midnight if no time is provided.

Implementation

LocalDateTime.combine(this.date, [LocalTime? time])
    : time = time ?? LocalTime();