fromDateTime static method

MonthAndYear fromDateTime(
  1. DateTime dateTime
)

Implementation

static MonthAndYear fromDateTime(DateTime dateTime) =>
    MonthAndYear(month: dateTime.month, year: dateTime.year);