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