close method

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

Closes any opened file handles.

If the Resource is already closed then invoking this method has no effect.

Implementation

@override
Future<void> close() async {
  if (_resource == null) {
    await _resource?.close();
  }
}