MonthAndYear.fromDate constructor

MonthAndYear.fromDate(
  1. Date dateTime
)

Implementation

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