isECI method
Determines if a value is an ECI
@param index the index of the value
@return true if the value at position index
is an ECI
@throws IndexOutOfBoundsException
if the index
argument is negative or not less than
length
Implementation
@override
bool isECI(int index) {
if (index < 0 || index >= length) {
// IndexOutOfBoundsException
throw IndexError.withLength(index, length);
}
return bytes[index] > 255 && bytes[index] <= 999;
}