get method

String? get(
  1. int n
)

Implementation

String? get(int n) {
  if (capitalword) {
    return null;
  }
  if (n < 1 || n > nGram || grams.length < n) {
    return null;
  }
  if (n == 1) {
    String ch = grams[grams.length - 1];
    if (ch == ' ') {
      return null;
    }
    return ch;
  } else {
    return grams.substring(grams.length - n);
  }
}