availableAt method

bool availableAt(
  1. String char,
  2. bool start
)
inherited

Implementation

bool availableAt(String char, bool start) {
  bool? res;
  if (start && _isStartOption) {
    res = contains(char.split("").first);
  }
  if (!start && !_isStartOption) {
    res = contains(char.split("").last);
  }

  if (res != null) {
    if (_must) {
      return res;
    } else {
      return !res;
    }
  }

  return true;
}