callFunction function

Future<Object?> callFunction(
  1. String name, [
  2. Object? data,
  3. CallOptions options = const CallOptions()
])

Calls the callable named name.

data is encoded as CBOR and arrives at the function as JSON-shaped data; the result comes back decoded the same way.

Implementation

Future<Object?> callFunction(
  String name, [
  Object? data,
  CallOptions options = const CallOptions(),
]) => _call(name, data, options, 0);