close method

void close()

Closes the file. Further writes throw.

Implementation

void close() => _file.closeSync();