suffix method

String suffix(
  1. int count
)

Implementation

String suffix(int count) {
  if (count <= length) {
    final startPos = length - count;
    return substring(startPos,count);
  }
  return this;
}