ToggleButtonsTheme constructor Null safety

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

Creates a toggle buttons theme that controls the color and border parameters for ToggleButtons.

The data argument must not be null.

Implementation

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