lastCharacters method

String lastCharacters(
  1. int count
)

Implementation

String lastCharacters(int count) {
  if (count >= this.length) {
    return this;
  } else {
    return this.substring(this.length - count);
  }
}