Date constructor

const Date({
  1. required int year,
  2. int month = 1,
  3. int day = 1,
})

Creates a Date with the given year, month, and day.

Implementation

const Date({required this.year, this.month = 1, this.day = 1});