operator [] method

int operator [](
  1. int index
)

Returns the byte at the specified index.

Example:

final bytes = Byte.fromList([10, 20, 30]);
print(bytes[1]);  // 20

Throws RangeError if index is invalid.

Implementation

int operator [](int index) => _bytes[index];