removeFirstChar method

String removeFirstChar()

Removes the first character from the string.

Implementation

String removeFirstChar() =>
    // Return empty if too short, otherwise return the substring from the second character.
    (length < 1) ? '' : substring(1);