replaceFirst static method

String replaceFirst(
  1. String? string,
  2. Pattern from,
  3. String to, [
  4. int startIndex = 0,
])

Refer to Safe.replaceFirst

Implementation

static String replaceFirst(
  String? string,
  Pattern from,
  String to, [
  int startIndex = 0,
]) => Safe.replaceFirst(string, from, to, startIndex);