ExpansionPanelRadio constructor Null safety

ExpansionPanelRadio(
  1. {required Object value,
  2. required ExpansionPanelHeaderBuilder headerBuilder,
  3. required Widget body,
  4. bool canTapOnHeader = false,
  5. Color? backgroundColor}
)

An expansion panel that allows for radio functionality.

A unique value must be passed into the constructor. The headerBuilder, body, value must not be null.

Implementation

ExpansionPanelRadio({
  required this.value,
  required super.headerBuilder,
  required super.body,
  super.canTapOnHeader,
  super.backgroundColor,
}) : assert(value != null);