copyWith method

FontConfig copyWith({
  1. String? family,
  2. List<String>? fallback,
  3. double? size,
  4. double? lineHeight,
  5. FontStyleConfig? bold,
  6. FontStyleConfig? italic,
  7. FontStyleConfig? boldItalic,
  8. double? offsetX,
  9. double? offsetY,
  10. double? glyphOffsetX,
  11. double? glyphOffsetY,
})

Implementation

FontConfig copyWith({
  String? family,
  List<String>? fallback,
  double? size,
  double? lineHeight,
  FontStyleConfig? bold,
  FontStyleConfig? italic,
  FontStyleConfig? boldItalic,
  double? offsetX,
  double? offsetY,
  double? glyphOffsetX,
  double? glyphOffsetY,
}) =>
    FontConfig(
      family: family ?? this.family,
      fallback: fallback ?? this.fallback,
      size: size ?? this.size,
      lineHeight: lineHeight ?? this.lineHeight,
      bold: bold ?? this.bold,
      italic: italic ?? this.italic,
      boldItalic: boldItalic ?? this.boldItalic,
      offsetX: offsetX ?? this.offsetX,
      offsetY: offsetY ?? this.offsetY,
      glyphOffsetX: glyphOffsetX ?? this.glyphOffsetX,
      glyphOffsetY: glyphOffsetY ?? this.glyphOffsetY,
    );