start method

Future<void> start({
  1. required CloudKitSyncDelegate delegate,
  2. required String? stateSerialization,
  3. List<String> excludedZoneNames = const [],
})

Starts the engine from stateSerialization, the latest CloudKitStateUpdate the app saved, or from scratch when it is null.

The engine never fetches the zones in excludedZoneNames. Use this for a zone whose records the app transfers with CloudKitAssetStore.

Implementation

Future<void> start({
  required CloudKitSyncDelegate delegate,
  required String? stateSerialization,
  List<String> excludedZoneNames = const [],
}) async {
  await CloudKitSyncChannel.start(delegate, {
    'containerId': containerId,
    'stateSerialization': stateSerialization,
    'excludedZoneNames': excludedZoneNames,
  });
}