getLastLetter method

String getLastLetter()

Implementation

String getLastLetter() {
  if (isEmpty) return '';
  return this[length - 1];
}