replaceFirstMapped static method

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

Refer to Safe.replaceFirstMapped

Implementation

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