close method

Uint8List close()

Appends the end-of-stream marker and returns the stream bytes. Further writes throw StateError; repeated calls return the same bytes.

Implementation

Uint8List close() => _core.close();