copyWith method

TextSpan copyWith({
  1. TextStyle? style,
  2. List<InlineSpan>? children,
  3. String? text,
  4. GestureRecognizer? recognizer,
  5. MouseCursor? mouseCursor,
  6. PointerEnterEventListener? onEnter,
  7. PointerExitEventListener? onExit,
  8. String? semanticsLabel,
  9. Locale? locale,
  10. bool? spellOut,
})

Implementation

TextSpan copyWith({
  TextStyle? style,
  List<InlineSpan>? children,
  String? text,
  GestureRecognizer? recognizer,
  MouseCursor? mouseCursor,
  PointerEnterEventListener? onEnter,
  PointerExitEventListener? onExit,
  String? semanticsLabel,
  Locale? locale,
  bool? spellOut,
}) => TextSpan(
  style: style ?? this.style,
  children: children ?? this.children,
  text: text ?? this.text,
  recognizer: recognizer ?? this.recognizer,
  mouseCursor: mouseCursor ?? this.mouseCursor,
  onEnter: onEnter ?? this.onEnter,
  onExit: onExit ?? this.onExit,
  semanticsLabel: semanticsLabel ?? this.semanticsLabel,
  locale: locale ?? this.locale,
  spellOut: spellOut ?? this.spellOut,
);