copyWith method

ZeroChipFilledStyle copyWith({
  1. Color? backgroundColor,
  2. TextStyle? textStyle,
  3. Color? iconColor,
})

copyWith is a function that returns a new instance of ZeroChipFilledStyle with the properties of the current instance, except for the ones that are passed as arguments to the function

Implementation

ZeroChipFilledStyle copyWith({
  Color? backgroundColor,
  TextStyle? textStyle,
  Color? iconColor,
}) {
  return ZeroChipFilledStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textStyle: textStyle ?? this.textStyle,
    iconColor: iconColor ?? this.iconColor,
  );
}