markPending method
- int id
Flip a failed row back to pending so the next SyncWorker
drain attempts it again. Used by the "Needs attention" UI's
retry button. Resets last_error so a stale message doesn't
keep showing while the row is back in flight.
Implementation
void markPending(int id) {
_requireReady();
_db!.execute(
"UPDATE outbox_events SET state = 'pending', last_error = NULL WHERE id = ?",
[id],
);
}