getDefaultSelectedDate function

DateTime getDefaultSelectedDate(
  1. YearMonth cym
)

Get default selected date

If cym.todayInThisMonth true, return DateTime.now. Otherwise, return cym.firstDay

Implementation

DateTime getDefaultSelectedDate(YearMonth cym) =>
    cym.todayInThisMonth ? DateTime.now() : cym.firstDay;