Returns the string prefix without the last count characters. If count is larger than length return the empty string.
count
String skipLast(int count) => substring(0, max(length - count, 0));