executeFunction<T> method

Future<T> executeFunction<T>(
  1. FunctionName functionName, {
  2. Iterable args = const [],
})

Executes the backend function with the given functionName the given args and returns a Future with the result.

For more information about backend functions in Squid, please refer to the documentation.

Implementation

Future<T> executeFunction<T>(FunctionName functionName,
    {Iterable<dynamic> args = const []}) {
  _validateNotDestructed();
  return _backendFunctionManager
      .executeFunctionAndSubscribe<T>(functionName, args)
      .toFuture();
}