copyWith method

RegexTransformer copyWith(
  1. {RegExp? regex,
  2. String? output,
  3. Map<String, dynamic>? variables,
  4. bool? math,
  5. bool? strict}
)

Returns a copy of this updated with the provided values.

Implementation

RegexTransformer copyWith({
  RegExp? regex,
  String? output,
  Map<String, dynamic>? variables,
  bool? math,
  bool? strict,
}) =>
    RegexTransformer(
      regex: regex ?? this.regex,
      output: output ?? this.output,
      variables: variables ?? this.variables,
      math: math ?? this.math,
      strict: strict ?? this.strict,
    );