execute method

Future execute(
  1. BuildContext context,
  2. SupabaseQuery request,
  3. SupabaseAction action,
  4. int loop,
)

Implementation

Future<dynamic> execute(
  BuildContext context,
  SupabaseQuery request,
  SupabaseAction action,
  int loop,
) async {
  final newRequest = request.copyWith(
    filters: getFields(context, request.filters, action.filters, loop),
  );
  final repository = DesignFlowQueryRepository(
      newRequest, SupabaseWorker(context.pageCubit.supabaseClient));
  final res = await repository.run();
  if (context.mounted) {
    return await _fold(
      context: context,
      res: res,
      loop: loop,
      action: action,
      request: request,
    );
  }
}