copyWith method

EasyRichTextPattern copyWith({
  1. dynamic targetString,
  2. dynamic stringBeforeTarget,
  3. dynamic stringAfterTarget,
  4. dynamic matchWordBoundaries,
  5. dynamic matchLeftWordBoundary,
  6. dynamic matchRightWordBoundary,
  7. dynamic superScript,
  8. dynamic subScript,
  9. dynamic style,
  10. dynamic urlType,
  11. dynamic recognizer,
  12. dynamic hasSpecialCharacters,
  13. dynamic matchOption,
  14. dynamic matchBuilder,
  15. dynamic prefixInlineSpan,
  16. dynamic suffixInlineSpan,
})

Implementation

EasyRichTextPattern copyWith({
  targetString,
  stringBeforeTarget,
  stringAfterTarget,
  matchWordBoundaries,
  matchLeftWordBoundary,
  matchRightWordBoundary,
  superScript,
  subScript,
  style,
  urlType,
  recognizer,
  hasSpecialCharacters,
  matchOption,
  matchBuilder,
  prefixInlineSpan,
  suffixInlineSpan,
}) {
  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,
    matchBuilder: matchBuilder ?? this.matchBuilder,
    prefixInlineSpan: prefixInlineSpan ?? this.prefixInlineSpan,
    suffixInlineSpan: suffixInlineSpan ?? this.suffixInlineSpan,
  );
}