copyWith method

T copyWith({
  1. TextStyle? style,
  2. GestureRecognizer? recognizer,
  3. String? semanticsLabel,
})

Implementation

T copyWith({
  TextStyle? style,
  GestureRecognizer? recognizer,
  String? semanticsLabel,
}) =>
    TextSpan(
      text: this.text,
      children: this.children,
      style: style ?? this.style,
      recognizer: recognizer ?? this.recognizer,
      semanticsLabel: semanticsLabel ?? this.semanticsLabel,
    ) as T;