copyWith method
Implementation
FontEntity copyWith({
String? fontName,
double? size,
int? weight,
int? style,
int? decoration,
RgbEntity? color,
}) {
return FontEntity(
fontName: fontName ?? this.fontName,
size: size ?? this.size,
weight: weight ?? this.weight,
style: style ?? this.style,
decoration: decoration ?? this.decoration,
color: color ?? this.color,
);
}