close method

void close()

Ends normally, releasing queued data and the source immediately.

Implementation

void close() => _finish();