flush method

void flush(
  1. int x
)

Removes 0..x of data.

Implementation

void flush(int x) => data = data.sublist(x);