FFXFunctions class
Callable transport. Project generation adds typed methods to this instance.
A call sends its request once: the platform keeps no idempotency record
for function calls, so a second request could run the function twice.
Every failure, a lost connection included, surfaces to the caller, and the
ordinary engine's retry policy never applies here. The one exception is a
definite pre-admission tokenExpired, which started nothing: the call
renews the token once and sends again. An app that needs a safe retry
sends its own request ID in data, and its function ignores an ID it has
already handled.
Constructors
- FFXFunctions(HttpCore _http, {required int credentialEpoch()})
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
-
call(
String name, Map< String, Object?> data, {FFXFunctionCallOptions options = const FFXFunctionCallOptions()}) → Future<Map< String, Object?> > -
close(
) → void - Cancels this client's in-flight calls and releases their response streams.
-
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