ButtonBar constructor Null safety
- {Key? key,
- MainAxisAlignment? alignment,
- MainAxisSize? mainAxisSize,
- ButtonTextTheme? buttonTextTheme,
- double? buttonMinWidth,
- double? buttonHeight,
- EdgeInsetsGeometry? buttonPadding,
- bool? buttonAlignedDropdown,
- ButtonBarLayoutBehavior? layoutBehavior,
- VerticalDirection? overflowDirection,
- double? overflowButtonSpacing,
- List<
Widget> children = const <Widget>[]}
Creates a button bar.
Both buttonMinWidth and buttonHeight must be non-negative if they are not null.
Implementation
const ButtonBar({
super.key,
this.alignment,
this.mainAxisSize,
this.buttonTextTheme,
this.buttonMinWidth,
this.buttonHeight,
this.buttonPadding,
this.buttonAlignedDropdown,
this.layoutBehavior,
this.overflowDirection,
this.overflowButtonSpacing,
this.children = const <Widget>[],
}) : assert(buttonMinWidth == null || buttonMinWidth >= 0.0),
assert(buttonHeight == null || buttonHeight >= 0.0),
assert(overflowButtonSpacing == null || overflowButtonSpacing >= 0.0);