haveNCharacters method

  1. @override
bool haveNCharacters(
  1. int index,
  2. int n
)
override

Implementation

@override
bool haveNCharacters(int index, int n) {
  if (index + n - 1 >= bytes.length) {
    return false;
  }
  for (int i = 0; i < n; i++) {
    if (isECI(index + i)) {
      return false;
    }
  }
  return true;
}