removeFirst method

String? removeFirst(
  1. String remove
)

Implementation

String? removeFirst(String remove) {
  if (this == null) return null;
  if (this!.isEmpty) return this;
  return this!.replaceFirst(remove, '');
}