needsDataSync method

bool needsDataSync()

Returns true if the entity's data needs to be synchronized with the cloud.

Implementation

bool needsDataSync() =>
    serverTimeSyncedAt == null || serverTimeSyncedAt!.isBefore(updatedAt!);