TTLink class
Properties
Methods
-
back(
[int amount = 1]) → dynamic - Move up to the parent context on the client hierarchy.
-
bye(
) → TTLink - No plans to support this
-
get(
String key, [TTMsgCb? cb]) → TTLink - Traverse a location in the graph
-
getPath(
) → List< String> - @returns path of this node
-
later(
) → TTLink - No plans to support this
-
load(
dynamic cb) → TTLink - No plans to support this
-
map(
) → TTLink - Iterates over each property and item on a node, passing it down the link chain
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
void cb(String key)) → TTLink - Register a callback for when it appears a record does not exist
-
off(
[TTOnCb? cb]) → TTLink - Unsubscribe one or all listeners subscribed with on
-
on(
TTOnCb cb) → TTLink - Subscribe to updates and changes on a node or property in realtime.
-
once(
TTOnCb cb) → TTLink - Get the current data without subscribing to updates. Or undefined if it cannot be found.
-
open(
dynamic cb) → TTLink - No plans to support this
-
opt(
[TTLinkOptions? options]) → TTLinkOptions - Change the configuration of this link
-
path(
String path) → TTLink - No plans to support this
-
promise(
[int timeout = 0]) → Future -
publish(
dynamic value, {TTMsgCb? onAck}) → Future< void> - Publish a value to the current graph location, awaiting optional ack.
-
put(
dynamic value, [TTMsgCb? cb]) → TTLink - Save data into the TT graph, syncing it with your connected peers.
-
requestSync(
{TTMsgCb? onAck}) → Future< void> - Request synchronization of the current path.
-
set(
dynamic data, [TTMsgCb? cb]) → TTLink - Add a unique item to an unordered list.
-
snapshot(
{int? timeout}) → Future - Snapshot the current value without subscribing to updates.
-
subscribe(
TTOnCb listener) → VoidCallback - Subscribe to updates and receive a disposer callback.
-
then(
dynamic fn(dynamic ttValue)) → Future -
toString(
) → String -
A string representation of this object.
inherited
-
unset(
TTNode node) → TTLink - No plans to support this
-
unsubscribe(
[TTOnCb? listener]) → void - Remove a listener or all listeners for this link.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited