copyWith method

ButtonConfig copyWith({
  1. double? bigButtonRadius,
  2. double? bigButtonHeight,
  3. double? bigButtonFontSize,
  4. double? smallButtonRadius,
  5. double? smallButtonHeight,
  6. double? smallButtonFontSize,
})

Implementation

ButtonConfig copyWith({
  double? bigButtonRadius,
  double? bigButtonHeight,
  double? bigButtonFontSize,
  double? smallButtonRadius,
  double? smallButtonHeight,
  double? smallButtonFontSize,
}) {
  return ButtonConfig(
    bigButtonRadius: bigButtonRadius ?? _bigButtonRadius,
    bigButtonHeight: bigButtonHeight ?? _bigButtonHeight,
    bigButtonFontSize: bigButtonFontSize ?? _bigButtonFontSize,
    smallButtonRadius: smallButtonRadius ?? _smallButtonRadius,
    smallButtonHeight: smallButtonHeight ?? _smallButtonHeight,
    smallButtonFontSize: smallButtonFontSize ?? _smallButtonFontSize,
  );
}