copyWith method

TextRun copyWith({
  1. String? text,
  2. SceneTextStyle? style,
})

Implementation

TextRun copyWith({String? text, SceneTextStyle? style}) =>
    TextRun(text ?? this.text, style: style ?? this.style);