copyWith method
ButtonStatus
copyWith({
- double? width,
- double? height,
- String? state,
- AnimatedButtonStatus? status,
- String? text,
- TextStyle? textStyle,
- Color? buttonColor,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- Gradient? gradient,
- bool? isTapScale,
- bool? isTextAnim,
- List<
BoxShadow> ? shadows,
Implementation
ButtonStatus copyWith({
double? width,
double? height,
String? state,
AnimatedButtonStatus? status,
String? text,
TextStyle? textStyle,
Color? buttonColor,
BorderRadius? borderRadius,
BorderSide? borderSide,
Gradient? gradient,
bool? isTapScale,
bool? isTextAnim,
List<BoxShadow>? shadows}) {
return ButtonStatus(
width: width ?? this.width,
height: height ?? this.height,
state: state ?? this.state,
status: status ?? this.status,
text: text ?? this.text,
textStyle: textStyle ?? this.textStyle,
buttonColor: buttonColor ?? this.buttonColor,
borderRadius: borderRadius ?? this.borderRadius,
borderSide: borderSide ?? this.borderSide,
gradient: gradient ?? this.gradient,
isTapScale: isTapScale ?? this.isTapScale,
shadows: shadows ?? this.shadows,
);
}