copyWith method
FontModel
copyWith({
- String? fontName,
- double? size,
- EliudFontWeight? weight,
- EliudFontStyle? style,
- EliudFontDecoration? decoration,
- RgbModel? color,
Implementation
FontModel copyWith({
String? fontName,
double? size,
EliudFontWeight? weight,
EliudFontStyle? style,
EliudFontDecoration? decoration,
RgbModel? color,
}) {
return FontModel(
fontName: fontName ?? this.fontName,
size: size ?? this.size,
weight: weight ?? this.weight,
style: style ?? this.style,
decoration: decoration ?? this.decoration,
color: color ?? this.color,
);
}