CacheSyncEvent class
Represents a cache synchronization event.
Constructors
-
CacheSyncEvent.new({required SyncEventType type, String? key, List<
String> ? keys, Object? error}) - Creates a new instance of CacheSyncEvent.
-
CacheSyncEvent.batchDelete(List<
String> keys) -
Creates a new batch delete event.
factory
-
CacheSyncEvent.batchUpdate(List<
String> keys) -
Creates a new batch update event.
factory
- CacheSyncEvent.clear()
-
Creates a new clear event.
factory
- CacheSyncEvent.delete(String key)
-
Creates a new delete event.
factory
- CacheSyncEvent.error(Object error)
-
Creates a new error event.
factory
- CacheSyncEvent.syncCompleted()
-
Creates a new sync completed event.
factory
- CacheSyncEvent.syncStarted()
-
Creates a new sync started event.
factory
- CacheSyncEvent.update(String key)
-
Creates a new update event.
factory
Properties
- error → Object?
-
The error that occurred, if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
The key of the cache item that was affected.
final
-
keys
→ List<
String> ? -
The keys of the cache items that were affected in a batch operation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The timestamp when the event occurred.
final
- type → SyncEventType
-
The type of synchronization event.
final
Methods
-
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.
inherited