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,
})

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,
  );
}