viewHeaderTextStyle property Null safety

TextStyle viewHeaderTextStyle
final

Specify the date picker view header text style in month view.

Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(),
      body: Center(
        child: SfTheme(
          data: SfThemeData(
            dateRangePickerThemeData: SfDateRangePickerThemeData(
              viewHeaderTextStyle: TextStyle(backgroundColor:
                Colors.greenAccent)
            )
          ),
          child: SfDateRangePicker(),
        ),
      )
  );
}

Implementation

final TextStyle viewHeaderTextStyle;