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({
  Key? key,
  required this.data,
  required Widget child,
}) : assert(data != null), super(key: key, child: child);