limitFromStart method
Shrink a string to be no more than maxSize
in length, extending from the start.
For example, in a string with 10 charachters, a maxSize
of 3 would return the first 3 charachters.
Implementation
String? limitFromStart(int maxSize) => (this?.length ?? 0) < maxSize ? this : this!.substring(0, maxSize);