removeFirst method

String removeFirst(
  1. String subString
)

removeFirst: removes the first occurrence of a substring

Implementation

String removeFirst(String subString) => this?.replaceFirst(subString, "") ?? "";