textAlign property Null safety

TextAlign textAlign
final

How the text should be aligned horizontally in SfCalendar week label of schedule view.

Defaults to TextAlign.start.


@override
 Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.schedule,
       scheduleViewSettings: ScheduleViewSettings(
           weekHeaderSettings: WeekHeaderSettings(
                  textAlign: TextAlign.center)),
     ),
   );
 }

Implementation

final TextAlign textAlign;