LocalDate constructor

LocalDate(
  1. int year, [
  2. int month = 1,
  3. int day = 1
])

Creates a LocalDate.

LocalDate(2023, 4, 11); // 2023-04-11

LocalDate(2023, 13, 2); // 2024-01-02

LocalDate(2023, -1, 2); // 2022-12-02

Implementation

LocalDate(super.year, [super.month = 1, super.day = 1]): super();