close method

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

Implementation

@override
Future<void> close() async {
  if (_file == null) {
    return;
  }
  var fp = _file!;
  _file = null;
  _position = 0;
  await fp.close();
}