getVariableById<T> method
Implementation
VariableInfoEntity getVariableById<T>({
required ID variableID,
required ID cubitID,
required ID stateID,
}) {
final variableInfo = appCubit.getVariableById(
cubitID: cubitID, stateID: stateID, variableID: variableID);
assert(variableInfo.variable is T,
'Variable with id $variableID is not of type $T');
return variableInfo;
}