SyncStatus class

Constructors

SyncStatus({bool connected = false, bool connecting = false, DateTime? lastSyncedAt, bool? hasSynced, bool downloading = false, bool uploading = false, Object? downloadError, Object? uploadError})
const

Properties

anyError Object?
Get the current downloadError or uploadError.
no setter
connected bool
true if currently connected.
final
connecting bool
true if the PowerSync connection is busy connecting.
final
downloadError Object?
Error during downloading (including connecting).
final
downloading bool
true if actively downloading changes.
final
hashCode int
The hash code for this object.
no setteroverride
hasSynced bool?
Indicates whether there has been at least one full sync, if any. Is null when unknown, for example when state is still being loaded from the database.
final
lastSyncedAt DateTime?
Time that a last sync has fully completed, if any.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploadError Object?
Error during uploading.
final
uploading bool
true if uploading changes
final

Methods

copyWith({bool? connected, bool? downloading, bool? uploading, bool? connecting, Object? uploadError, Object? downloadError, DateTime? lastSyncedAt, bool? hasSynced}) SyncStatus
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override