close method

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

Close the connection to the repository. If this is the last connection to the repository it will return true and the repository is truly closed. If there are still open connections it will return false;

Implementation

@override
Future<bool> close() async {
  if (!shouldClose()) {
    return false;
  }
  await _saveFile();
  return true;
}