copyWith method

BaseTextStyle copyWith({
  1. Color? color,
  2. double? fontSize,
  3. FontWeight? fontWeight,
  4. TextDecoration? decoration,
  5. double? height,
  6. TextBaseline? textBaseline,
})

Implementation

BaseTextStyle copyWith({
  Color? color,
  double? fontSize,
  FontWeight? fontWeight,
  TextDecoration? decoration,
  double? height,
  TextBaseline? textBaseline,
}) {
  return BaseTextStyle(
    color: color ?? this.color,
    fontSize: fontSize ?? this.fontSize,
    fontWeight: fontWeight ?? this.fontWeight,
    decoration: decoration ?? this.decoration,
    height: height ?? this.height,
    textBaseline: textBaseline ?? this.textBaseline,
  );
}