fields property

Map<String, Object?> fields
final

Field values: String, int, double, Uint8List, or a List of those. When saving, a null value removes the field from the server copy. A received record never holds null values.

Saving a record built from systemFields sends only these fields; fields left out keep their server values.

The bridge cannot deliver a received record with any other field type, such as a date, a boolean, a reference, or a location. Receiving one stops the engine, and later calls throw CloudKitSyncException.engineNotRunning with a message that names the record type, record, and field. The engine stays stopped across starts until that record no longer holds the value.

Implementation

final Map<String, Object?> fields;