copyWith method

TextSpan copyWith({
  1. required String newText,
})

Implementation

TextSpan copyWith({
  required String newText,
}) =>
    TextSpan(
      text: newText,
      style: style,
      children: children,
      semanticsLabel: semanticsLabel,
      recognizer: recognizer,
    );