replaceFirstMapped method

String replaceFirstMapped(
  1. Pattern from,
  2. String replace(
    1. Match match
    ), [
  3. int startIndex = 0
])

Implementation

String replaceFirstMapped(
  Pattern from,
  String Function(Match match) replace, [
  int startIndex = 0,
]) =>
    value.replaceFirstMapped(from, replace, startIndex);