open method

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

Opens the repository, or just returns true if the repo is already open.

Implementation

@override
Future<bool> open() async {
  if (!shouldOpenOnNewConnection()) {
    return openCompleter!.future;
  }
  final file = await _getFile();
  await _readFile(file);
  return opened();
}