SyncEventCodec class

Serializes SyncEvents to plain maps so they can cross from one engine (e.g. the background job) to another (the UI isolate) through the platform channel.

Request bodies are not transported: tasks arrive with request.body == null. Everything else (id, tag, metadata, attempts, errors) is kept.

Constructors

SyncEventCodec()
Creates the codec.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Object? raw) → SyncEvent?
Map → event, or null for an unknown/malformed payload.
encode(SyncEvent event) → Map<String, Object?>
Event → map.
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