copyWith method

TextOverlayStyle copyWith({
  1. String? fontId,
  2. Color? color,
  3. TextAlign? align,
  4. TextBackgroundStyle? background,
  5. 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,
);