removeExtraCharactersFromStart method

String removeExtraCharactersFromStart(
  1. String charactersToRemove
)

removeExtraCharactersFromStart: removes extra characters from the start of a string

Implementation

String removeExtraCharactersFromStart(String charactersToRemove) =>
    this?.replaceFirst(RegExp('^[$charactersToRemove]+'), '') ?? "";