copyWith method
TextMetadata
copyWith({
- Color? color,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? fontSize,
- TextDecorationEnum? decoration,
- List<
FontFeature> ? fontFeatures, - TextAlign? alignment,
Implementation
TextMetadata copyWith({
Color? color,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? fontSize,
TextDecorationEnum? decoration,
List<FontFeature>? fontFeatures,
TextAlign? alignment,
}) {
return TextMetadata(
color: color ?? this.color,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle,
fontSize: fontSize ?? this.fontSize,
decoration: decoration ?? this.decoration,
fontFeatures: fontFeatures ?? this.fontFeatures,
alignment: alignment ?? this.alignment,
);
}