copyWith method

  1. @override
ThemeExtension<TxButtonBarThemeData> copyWith({
  1. ButtonStyle? mainButtonStyle,
  2. ButtonStyle? secondaryButtonStyle,
  3. EdgeInsetsGeometry? buttonPadding,
  4. ButtonTextTheme? buttonTextTheme,
  5. double? buttonHeight,
  6. double? buttonMinWidth,
  7. ButtonBarLayoutBehavior? layoutBehavior,
  8. 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,
  );
}