copyWith method
SBoxBotBtnData
copyWith({
- Color? backgroundColor,
- bool? isRest,
- String? leftTxt,
- String? rightTxt,
- TextStyle? leftStyle,
- TextStyle? rightStyle,
- BoxDecoration? leftDecoration,
- 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,
);
}