sync method

Future<void> sync({
  1. Map<String, dynamic>? extra,
})

Sync data stored on the machine to the cloud.

// Example:
await myDataManager.sync();

For more information, see the data management service docs.

Implementation

Future<void> sync({Map<String, dynamic>? extra}) async {
  final request = SyncRequest(name: name, extra: extra?.toStruct());
  await client.sync(request, options: callOptions);
}