backgroundColor property Null safety

Color backgroundColor
final

Specifies the background color of date picker widget.

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

Implementation

final Color backgroundColor;