copyWith method

ButtonStatus copyWith({
  1. double? width,
  2. double? height,
  3. String? state,
  4. AnimatedButtonStatus? status,
  5. String? text,
  6. TextStyle? textStyle,
  7. Color? buttonColor,
  8. BorderRadius? borderRadius,
  9. BorderSide? borderSide,
  10. Gradient? gradient,
  11. bool? isTapScale,
  12. bool? isTextAnim,
  13. 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,
  );
}