copyWith method
ThemeExtension<TxButtonBarThemeData>
copyWith({
- ButtonStyle? mainButtonStyle,
- ButtonStyle? secondaryButtonStyle,
- EdgeInsetsGeometry? buttonPadding,
- ButtonTextTheme? buttonTextTheme,
- double? buttonHeight,
- double? buttonMinWidth,
- ButtonBarLayoutBehavior? layoutBehavior,
- bool? buttonAlignedDropdown,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
ThemeExtension<TxButtonBarThemeData> copyWith({
ButtonStyle? mainButtonStyle,
ButtonStyle? secondaryButtonStyle,
EdgeInsetsGeometry? buttonPadding,
ButtonTextTheme? buttonTextTheme,
double? buttonHeight,
double? buttonMinWidth,
ButtonBarLayoutBehavior? layoutBehavior,
bool? buttonAlignedDropdown,
}) {
return TxButtonBarThemeData(
mainButtonStyle: mainButtonStyle,
secondaryButtonStyle: secondaryButtonStyle,
buttonPadding: buttonPadding,
buttonTextTheme: buttonTextTheme,
buttonHeight: buttonHeight,
buttonMinWidth: buttonMinWidth,
layoutBehavior: layoutBehavior,
buttonAlignedDropdown: buttonAlignedDropdown,
);
}