removeLast method

String removeLast()

Implementation

String removeLast() {
  if (isEmpty) return this;
  return substring(0, length - 1);
}