readChar method

  1. @override
int readChar(
  1. int index
)
override

Reads the character at the specified offset and returns that character.

Throws an exception, if the specified offset is outside the valid range.

The offset must be specified in units defined by the specific reader.

Implementation

@override
int readChar(int index) {
  if (index < 0) {
    throw ArgumentError.value(index, 'index', 'Must not be negative');
  }

  final c = _read(index);
  return c;
}