execute<TResponse> method
Functions defined in the action can be executed by passing FunctionsAction.
The corresponding Function must be running in adapter, such as on the server side.
FunctionsActionを渡すことでアクションに定義されたFunctionを実行することができます。
サーバー側などadapterにそれに対応したFunctionが動作している必要があります。
Implementation
Future<TResponse?> execute<TResponse>(
FunctionsAction<TResponse> action) async {
try {
final res = await adapter.execute(action);
notifyListeners();
return res;
} catch (e) {
debugPrint(e.toString());
rethrow;
}
}