monthCellBuilder property Null safety

MonthCellBuilder? monthCellBuilder
final

A builder that builds a widget, replaces the month cell in the calendar month view.

Note: Month cell appointments are not shown when the month cell builder, builds the custom widget for month view.

@override
 Widget build(BuildContext context) {
   return Scaffold(
       body: Container(
           child: SfCalendar(
     view: CalendarView.month,
     monthCellBuilder:
          (BuildContext buildContext, MonthCellDetails details) {
       return Container(
         color: Colors.red,
         child: Text(
           details.date.day.toString(),
         ),
       );
     },
   )));
 }

Implementation

final MonthCellBuilder? monthCellBuilder;