replaceMapped function
Returns a transformer that replaces matches of regexp with the result of
calling replace.
By default, only replaces the first match per line. If all is true,
replaces all matches in each line instead.
The caseSensitive, unicode, and dotAll flags are the same as for
new RegExp.
Implementation
StreamTransformer<String, String> replaceMapped(
String regexp, String replace(Match match),
{bool all = false,
bool caseSensitive = true,
bool unicode = false,
bool dotAll = false}) =>
NamedStreamTransformer.fromBind(
"replaceMapped",
(stream) => stream.replaceMapped(regexp, replace,
all: all,
caseSensitive: caseSensitive,
unicode: unicode,
dotAll: dotAll));