needsSync property

bool Function(dynamic model) needsSync
final

Predicate function to determine if an object needs syncing.

This is called to filter which objects trigger sync operations. Common patterns:

  • Flag-based: (obj) => obj.syncUpdateDb (explicit control)
  • Always sync: (obj) => true (sync every change)
  • Conditional: (obj) => obj.status == 'published' (business logic)

Important: Return true to trigger sync, false to skip.

Implementation

final bool Function(dynamic model) needsSync;