MonthAndYear.fromDate constructor
MonthAndYear.fromDate(
- Date dateTime
Implementation
factory MonthAndYear.fromDate(Date dateTime) {
return MonthAndYear(
month: dateTime.month,
year: dateTime.year,
);
}