close method Null safety

  1. @override
Future<void> close()
override

Asynchronously closes the input stream.

Implementation

@override
Future<void> close() async {
  await _file.close();
  _fileSize = 0;
  _position = 0;
}