ExpansionTileTheme constructor Null safety

const ExpansionTileTheme(
  1. {Key? key,
  2. required ExpansionTileThemeData data,
  3. required Widget child}
)

Applies the given theme data to child.

The data and child arguments must not be null.

Implementation

const ExpansionTileTheme({
  super.key,
  required this.data,
  required super.child,
}) : assert(child != null),
     assert(data != null);