copyWith method
TextSpan
copyWith({ - TextStyle? style,
- List<InlineSpan>? children,
- String? text,
- GestureRecognizer? recognizer,
- MouseCursor? mouseCursor,
- PointerEnterEventListener? onEnter,
- PointerExitEventListener? onExit,
- String? semanticsLabel,
- Locale? locale,
- 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,
);