copyWith method

BaseStyle copyWith(
  1. {double? fontSize,
  2. Color? color,
  3. double? height,
  4. Color? activeColor,
  5. Color? backgroundColor,
  6. Color? backgroundActiveColor}
)

Implementation

BaseStyle copyWith({
  double? fontSize,
  Color? color,
  double? height,
  Color? activeColor,
  Color? backgroundColor,
  Color? backgroundActiveColor,
}) {
//    print("copyWidth >>> fontSize: ${fontSize ?? this.fontSize}");
  return BaseStyle(
      fontSize: fontSize ?? this.fontSize,
      color: color ?? this.color,
      height: height ?? this.height,
      activeColor: activeColor ?? this.activeColor,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      backgroundActiveColor:
          backgroundActiveColor ?? this.backgroundActiveColor);
}