removeFirstCharacters function

String removeFirstCharacters(
  1. String text,
  2. int count
)

Convenience method to remove a given number of characters from the beginning of a string

Implementation

String removeFirstCharacters(String text, int count) {
  if (text.length < count) return "";
  return text.substring(count);
}