isSyncEnabled method

Future<bool> isSyncEnabled()

Returns whether syncing with other replicas is enabled for this repository.

Implementation

Future<bool> isSyncEnabled(
) async {
  final request = RequestRepositoryIsSyncEnabled(
    repo: handle,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseBool(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}