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