copy method

ContentStyle copy({
  1. FontWeight? fontWeight,
  2. TextAlign? textAlign,
  3. Color? textColor,
  4. double? textSize,
})

Implementation

ContentStyle copy({
  FontWeight? fontWeight,
  TextAlign? textAlign,
  Color? textColor,
  double? textSize,
}) {
  return ContentStyle(
    fontWeight: fontWeight ?? this.fontWeight,
    textAlign: textAlign ?? this.textAlign,
    textColor: textColor ?? this.textColor,
    textSize: textSize ?? this.textSize,
  );
}