copyWith method

FontEntity copyWith({
  1. String? fontName,
  2. double? size,
  3. int? weight,
  4. int? style,
  5. int? decoration,
  6. RgbEntity? color,
})

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,
  );
}