getPreviousMonthDateTime method

  1. @override
CalendarDateTime getPreviousMonthDateTime()
override

Implementation

@override
CalendarDateTime getPreviousMonthDateTime() {
  final date = _getSelectedDate();
  return CalendarDateTime.parseDateTime(
      DateTime(date.year, date.month - 1, 1).toString())!;
}