DatumSyncBatchOperation<T extends DatumEntityInterface> class
Represents a batch of pending operations to be synchronized together.
- Inheritance
-
- Object
- DatumSyncOperation<
T> - DatumSyncBatchOperation
Constructors
-
DatumSyncBatchOperation({required List<
DatumSyncOperation< operations})T> > - Creates a DatumSyncBatchOperation.
Properties
- data → T?
-
The full data payload of the entity.
finalinherited
-
delta
→ Map<
String, dynamic> ? -
A map of only the fields that have changed for an
updateoperation.finalinherited - entityId → String
-
The ID of the entity this operation targets.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique identifier for this operation.
finalinherited
-
operations
→ List<
DatumSyncOperation< T> > -
The list of individual operations included in this batch.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- retryCount → int
-
The number of times this operation has been retried.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizeInBytes → int
-
The size of the data payload in bytes.
finalinherited
- stringify → bool
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - timestamp → DateTime
-
The timestamp when the operation was created.
finalinherited
- type → DatumOperationType
-
The type of operation (create, update, delete).
finalinherited
- userId → String
-
The ID of the user this operation belongs to.
finalinherited
Methods
-
copyWith(
{String? id, String? userId, String? entityId, DatumOperationType? type, T? data, Map< String, dynamic> ? delta, DateTime? timestamp, int? retryCount, int? sizeInBytes}) → DatumSyncOperation<T> -
Creates a copy of this operation with updated fields.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Converts the operation to a JSON string.
inherited
-
toMap(
) → Map< String, dynamic> -
Converts the operation to a map representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited