copyWith method
ClickablePattern
copyWith({
- String? name,
- String? pattern,
- bool? enabled,
- PatternClicked? onClicked,
- TextStyle? style,
- InlineSpan spanBuilder(
- String text,
- ClickablePattern pattern
- dynamic onSpanCreation(
- InlineSpan span,
- int index
Implementation
ClickablePattern copyWith({
String? name,
String? pattern,
bool? enabled,
PatternClicked? onClicked,
TextStyle? style,
InlineSpan Function(String text, ClickablePattern pattern)? spanBuilder,
Function(InlineSpan span, int index)? onSpanCreation,
}) {
return ClickablePattern(
name: name ?? this.name,
pattern: pattern ?? this.pattern,
enabled: enabled ?? this.enabled,
onClicked: onClicked ?? this.onClicked,
style: style ?? this.style,
onSpanCreation: onSpanCreation ?? this.onSpanCreation,
spanBuilder: spanBuilder ?? this.spanBuilder,
);
}