FunctionCallable class
Contains methods for calling cloud functions.
FunctionCallable functionCallable = FunctionCallable("your-cloud-function-handler");
Constructors
- FunctionCallable(String httpTriggerURI, {int timeout = 70, AGCTimeUnit units = AGCTimeUnit.SECONDS})
- Default constructor.
- FunctionCallable.fromJson(String source)
-
Creates a FunctionCallable object from a JSON string.
factory
-
FunctionCallable.fromMap(Map<
String, dynamic> map) -
Creates a FunctionCallable object from a map.
factory
Properties
- hashCode → int
-
Generates the hash code for a FunctionCallable object.
no setteroverride
- httpTriggerURI ↔ String
-
Function HTTP Trigger Identifier.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout ↔ int
-
Timeout interval of a function.
For Android, the interval unit is defined by the units parameter and the
default time unit is seconds.
getter/setter pair
- units ↔ AGCTimeUnit
-
Time unit definition. This parameter is optional. The default value is
AGCTimeUnit.SECONDS.
getter/setter pair
Methods
-
call(
[dynamic parameters]) → Future< FunctionResult> - Configures and calls a cloud function.
-
clone(
{String? httpTriggerURI, int? timeout, AGCTimeUnit? units}) → FunctionCallable - Clones FunctionCallable object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts FunctionCallable object to JSON string.
-
toMap(
) → Map< String, dynamic> - Converts FunctionCallable object to map.
-
toString(
) → String -
Converts FunctionCallable object to string.
override
Operators
-
operator ==(
Object other) → bool -
Compares two FunctionCallable objects.
override
Constants
- DEFAULT_TIMEOUT → const int
- DEFAULT_TIMEUNIT → const AGCTimeUnit