copyWith method

AppzStateStyle copyWith({
  1. Color? borderColor,
  2. double? borderWidth,
  3. double? borderRadius,
  4. Color? backgroundColor,
  5. Color? textColor,
  6. Color? labelColor,
  7. String? fontFamily,
  8. double? fontSize,
  9. double? labelFontSize,
  10. double? paddingHorizontal,
  11. double? paddingVertical,
})

Implementation

AppzStateStyle copyWith({
  Color? borderColor,
  double? borderWidth,
  double? borderRadius,
  Color? backgroundColor,
  Color? textColor,
  Color? labelColor,
  String? fontFamily,
  double? fontSize,
  double? labelFontSize,
  double? paddingHorizontal,
  double? paddingVertical,
}) {
  return AppzStateStyle(
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    labelColor: labelColor ?? this.labelColor,
    fontFamily: fontFamily ?? this.fontFamily,
    fontSize: fontSize ?? this.fontSize,
    labelFontSize: labelFontSize ?? this.labelFontSize,
    paddingHorizontal: paddingHorizontal ?? this.paddingHorizontal,
    paddingVertical: paddingVertical ?? this.paddingVertical,
  );
}