setSyncEnabled method
- bool enabled
Enabled or disables syncing with other replicas.
Note syncing is initially disabled.
Implementation
Future<void> setSyncEnabled(
bool enabled,
) async {
final request = RequestRepositorySetSyncEnabled(
repo: handle,
enabled: enabled,
);
final response = await client.invoke(request);
switch (response) {
case ResponseNone(): return;
default: throw UnexpectedResponse();
}
}