SyncBinding mixin

Mixin Applications

Properties

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

Methods

fetchState(String url) Future<Map<String, dynamic>>
On the client, this should perform a http request to url to fetch state data from the server.
getInitialState<T>(String id, {Codec<T, dynamic>? codec}) → T?
getRawState(String id) → dynamic
Must return the serialized state data associated with id. On the client this is the data that is synced from the server.
getStateData() Map<String, dynamic>
Returns the accumulated data from all active States that use the SyncStateMixin
loadState(String path) Future<void>
Loads state from the server and and notifies elements. This is called when a LazyRoute is loaded.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSyncState(SyncState syncState, {bool initialUpdate = true}) → void
toString() String
A string representation of this object.
inherited
unregisterSyncState(SyncState syncState) → void
updateRawState(String id, dynamic state) → void
Must update the serialized state data associated with id. This is called on the client when new data is loaded for a LazyRoute.

Operators

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