copyWith method
EasyRichTextPattern
copyWith({
- dynamic targetString,
- dynamic stringBeforeTarget,
- dynamic stringAfterTarget,
- dynamic matchWordBoundaries,
- dynamic matchLeftWordBoundary,
- dynamic matchRightWordBoundary,
- dynamic superScript,
- dynamic subScript,
- dynamic style,
- dynamic urlType,
- dynamic recognizer,
- dynamic hasSpecialCharacters,
- dynamic matchOption,
Implementation
EasyRichTextPattern copyWith({
targetString,
stringBeforeTarget,
stringAfterTarget,
matchWordBoundaries,
matchLeftWordBoundary,
matchRightWordBoundary,
superScript,
subScript,
style,
urlType,
recognizer,
hasSpecialCharacters,
matchOption,
}) {
return EasyRichTextPattern(
targetString: targetString ?? this.targetString,
stringBeforeTarget: stringBeforeTarget ?? this.stringBeforeTarget,
stringAfterTarget: stringAfterTarget ?? this.stringAfterTarget,
matchWordBoundaries: matchWordBoundaries ?? this.matchWordBoundaries,
matchLeftWordBoundary:
matchLeftWordBoundary ?? this.matchLeftWordBoundary,
matchRightWordBoundary:
matchRightWordBoundary ?? this.matchRightWordBoundary,
superScript: superScript ?? this.superScript,
subScript: subScript ?? this.subScript,
style: style ?? this.style,
urlType: urlType ?? this.urlType,
recognizer: recognizer ?? this.recognizer,
hasSpecialCharacters: hasSpecialCharacters ?? this.hasSpecialCharacters,
matchOption: matchOption ?? this.matchOption,
);
}