copyWith method

TextOverlay copyWith({
  1. String? text,
  2. TextOverlayStyle? style,
})

Returns a copy with the given values replaced.

Implementation

TextOverlay copyWith({String? text, TextOverlayStyle? style}) => TextOverlay(
  id: id,
  transform: transform,
  text: text ?? this.text,
  style: style ?? this.style,
);