copyWith method

FontModel copyWith({
  1. String? fontName,
  2. double? size,
  3. EliudFontWeight? weight,
  4. EliudFontStyle? style,
  5. EliudFontDecoration? decoration,
  6. 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,
  );
}