copyWith method
TextOverlayStyle
copyWith({
- String? fontId,
- Color? color,
- TextAlign? align,
- TextBackgroundStyle? background,
- double? fontSize,
Returns a copy with the given values replaced.
Implementation
TextOverlayStyle copyWith({
String? fontId,
Color? color,
TextAlign? align,
TextBackgroundStyle? background,
double? fontSize,
}) => TextOverlayStyle(
fontId: fontId ?? this.fontId,
color: color ?? this.color,
align: align ?? this.align,
background: background ?? this.background,
fontSize: fontSize ?? this.fontSize,
);