copyWith method

RegExpReplace copyWith({
  1. RegExp? from,
  2. String replace(
    1. Match match
    )?,
})

Implementation

RegExpReplace copyWith({
  final RegExp? from,
  final String Function(Match match)? replace,
}) {
  return RegExpReplace(
    from: from ?? this.from,
    replace: replace ?? this.replace,
  );
}