MonthAndYear.fromDateTime constructor

MonthAndYear.fromDateTime(
  1. DateTime dateTime
)

Implementation

factory MonthAndYear.fromDateTime(DateTime dateTime) {
  return MonthAndYear(
    month: dateTime.month,
    year: dateTime.year,
  );
}