operator [] method Null safety

int operator [](
  1. int index
)

Access the buffer relative from the current position.

Implementation

int operator [](int index) => buffer[offset + index];