getDayBorderRadius method

BorderRadius? getDayBorderRadius(
  1. DateTime day
)

Implementation

BorderRadius? getDayBorderRadius(DateTime day) {
  switch (isDaySelected(day)) {
    case CalendarMonthOverviewDaySelect.only:
      return const BorderRadius.all(Radius.circular(999));
    case CalendarMonthOverviewDaySelect.middle:
      return null;
    case CalendarMonthOverviewDaySelect.left:
      return const BorderRadius.only(
          topLeft: Radius.circular(999), bottomLeft: Radius.circular(999));
    case CalendarMonthOverviewDaySelect.right:
      return const BorderRadius.only(
          topRight: Radius.circular(999), bottomRight: Radius.circular(999));
    case CalendarMonthOverviewDaySelect.not:
      return null;

    default:
      return null;
  }
}