replaceFirst method

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

Implementation

String replaceFirst(Pattern from, String to, [int startIndex = 0]) =>
    value.replaceFirst(from, to, startIndex);