flush abstract method

void flush([
  1. int buffers = SerialPortBuffer.both
])

Flushes serial port buffers. Data in the selected buffer(s) is discarded.

See also:

Implementation

void flush([int buffers = SerialPortBuffer.both]);