getAllVariables property

Map<ID, VariableInfoEntity> get getAllVariables

Implementation

Map<ID, VariableInfoEntity> get getAllVariables {
  final variables = <ID, VariableInfoEntity>{};
  state.cubits.forEach((cubitID, _) {
    final cubit = state.getCubitByID(cubitID);
    cubit.states.forEach((_, state) {
      state.fields.forEach((_, variable) {
        variables[variable.id] = VariableCubitInfoEntity(
          cubitID: cubitID,
          cubitName: cubit.name,
          stateID: state.id,
          stateName: state.name,
          variable: variable,
        );
      });
    });
  });
  return variables;
}