copyWith method

SBoxBotBtnData copyWith({
  1. Color? backgroundColor,
  2. bool? isRest,
  3. String? leftTxt,
  4. String? rightTxt,
  5. TextStyle? leftStyle,
  6. TextStyle? rightStyle,
  7. BoxDecoration? leftDecoration,
  8. BoxDecoration? rightDecoration,
})

Implementation

SBoxBotBtnData copyWith({
  Color? backgroundColor,
  bool? isRest,
  String? leftTxt,
  String? rightTxt,
  TextStyle? leftStyle,
  TextStyle? rightStyle,
  BoxDecoration? leftDecoration,
  BoxDecoration? rightDecoration,
}) {
  return SBoxBotBtnData(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    isRest: isRest ?? this.isRest,
    leftTxt: leftTxt ?? this.leftTxt,
    rightTxt: rightTxt ?? this.rightTxt,
    leftStyle: leftStyle ?? this.leftStyle,
    rightStyle: rightStyle ?? this.rightStyle,
    leftDecoration: leftDecoration ?? this.leftDecoration,
    rightDecoration: rightDecoration ?? this.rightDecoration,
  );
}