ButtonBarTheme constructor Null safety

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

Constructs a button bar theme that configures all descendent ButtonBar widgets.

The data must not be null.

Implementation

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