transform method Null safety

String transform(
  1. RegExp regex,
  2. String output,
  3. {Map<String, dynamic>? variables,
  4. bool math = false,
  5. bool strict = false}

Identifies the first match of regex in this and outputs a new string as defined by the output template.

If the regex can't be matched with this string, the string will be output unmodified.


String transform(
  RegExp regex,
  String output, {
  Map<String, dynamic>? variables,
  bool math = false,
  bool strict = false,
}) =>
      regex: regex,
      output: output,
      variables: variables,
      math: math,
      strict: strict,