applyAckSuccess property
void Function(dynamic model)?
applyAckSuccess
final
Optional callback invoked after successful sync acknowledgment from server.
Called within a write transaction, so you can safely modify the object.
The syncUpdateDb flag is automatically cleared - use this for additional logic.
Example:
applyAckSuccess: (obj) {
obj.lastSyncedAt = DateTime.now();
print('Successfully synced: ${obj.id}');
}
Implementation
final void Function(dynamic model)? applyAckSuccess;