SyncEntry class
A single queued sync operation waiting to be pushed to the remote.
Constructors
Properties
- createdAt → DateTime
-
Timestamp when this entry was created.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for this sync entry.
final
- isPending → bool
-
Whether this entry has not yet been synced.
no setter
- nextRetryAt → DateTime?
-
Scheduled time for the next retry attempt, or
nullif not scheduled.final - operation → SyncOperation
-
The type of sync operation (create, update, delete).
final
-
payload
→ Map<
String, dynamic> -
The data payload to be synced.
final
- recordId → String
-
Identifier of the record being synced.
final
- retryCount → int
-
Number of times this entry has been retried.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- syncedAt → DateTime?
-
Timestamp when this entry was successfully synced, or
nullif pending.final - table → String
-
Name of the database table this entry targets.
final
Methods
-
copyWith(
{String? id, String? table, String? recordId, SyncOperation? operation, Map< String, dynamic> ? payload, DateTime? createdAt, DateTime? syncedAt, int? retryCount, DateTime? nextRetryAt}) → SyncEntry - Returns a copy of this entry with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited