child property

  1. @override
Widget child
final

Specifies a widget that can hold single child.

Widget build(BuildContext context) {
 return Scaffold(
    body: SfDateRangePickerTheme(
      data: SfDateRangePickerThemeData(
        backgroundColor: Colors.grey,
        brightness: Brightness.dark,
      ),
      child: SfDateRangePicker()
    ),
  );
}

Implementation

@override
final Widget child;