StringTransformers extension Null safety

Adds the transform and transformAll methods from RegexTransformer to String.

on

Methods

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