enableSync method
void
enableSync({})
Attach the uploader.
Implementation
void enableSync({
required UiGraphTransport transport,
required Future<String?> Function() getAppUserId,
required String sdkName,
required String sdkVersion,
required String platform,
required String Function() appVersion,
}) {
if (_sync != null) return;
_sync = UiGraphSyncEngine(
host: this,
transport: transport,
getAppUserId: getAppUserId,
sdkName: sdkName,
sdkVersion: sdkVersion,
platform: platform,
appVersion: appVersion,
isEnabled: () => ActionGates.instance.cacheSyncEnabled,
generation: () => _epoch,
now: _now,
)..start();
}