clipRight method
Clip the n rightmost characters
Implementation
String clipRight(int n) {
if (n <= 0) {
return this;
}
var count = characters.length - n;
if (count <= 0) {
return '';
}
return characters.take(count).toString();
}