runFunction method

void runFunction(
  1. BuildContext context,
  2. UIStateAction action
)

Implementation

void runFunction(
  BuildContext context,
  UIStateAction action,
) {
  try {
    /*if (action is AssignUIStateAction) {
      return assignVariable(
        context,
        action,
      );
    }*/
    throw Exception('No function found');
  } catch (e) {
    context.read<AppLogsCubit>().onNewLog(
          EditorLogEntity(
            id: _uuid.v1(),
            content: e.toString(),
            createdAt: DateTime.now(),
          ),
        );
  }
  return;
}