Date.today constructor

Date.today()

Creates a Date that represents the current date.

Implementation

factory Date.today() {
  final date = DateTime.now();
  return Date(date.year, date.month, date.day);
}