FunctionsClient class

Constructors

FunctionsClient(String url, Map<String, String> headers, {Client? httpClient, YAJsonIsolate? isolate})
In case you don't provide your own isolate, call dispose when you're done

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Getter for the headers
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Disposes the self created isolate for json encoding/decoding
invoke(String functionName, {Map<String, String>? headers, Map<String, dynamic>? body, HttpMethod method = HttpMethod.post, ResponseType responseType = ResponseType.json}) Future<FunctionResponse>
Invokes a function
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAuth(String token) → void
Updates the authorization header
toString() String
A string representation of this object.
inherited

Operators

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