RegExpTransformers extension Null safety

Adds the transform and transformAll methods from RegexTransformer to RegExp.

on

Methods

transform(String input, String output, {Map<String, dynamic>? variables, bool math = false, bool strict = false}) String
Identifies the first match of this in input and outputs a new string as defined by the output template.
transformAll(String input, String output, {Map<String, dynamic>? variables, bool math = false, bool strict = false}) String
Returns a new string with every instance of this matched within input replaced with new text as defined by the output template.