copyWith method
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,
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,
);