ButtonBarThemeData constructor Null safety
- {MainAxisAlignment? alignment,
- MainAxisSize? mainAxisSize,
- ButtonTextTheme? buttonTextTheme,
- double? buttonMinWidth,
- double? buttonHeight,
- EdgeInsetsGeometry? buttonPadding,
- bool? buttonAlignedDropdown,
- ButtonBarLayoutBehavior? layoutBehavior,
- VerticalDirection? overflowDirection}
Constructs the set of properties used to configure ButtonBar widgets.
Both buttonMinWidth and buttonHeight must be non-negative if they are not null.
Implementation
const ButtonBarThemeData({
this.alignment,
this.mainAxisSize,
this.buttonTextTheme,
this.buttonMinWidth,
this.buttonHeight,
this.buttonPadding,
this.buttonAlignedDropdown,
this.layoutBehavior,
this.overflowDirection,
}) : assert(buttonMinWidth == null || buttonMinWidth >= 0.0),
assert(buttonHeight == null || buttonHeight >= 0.0);