resolveClass method
Resolves the generated class name for the specified component.
Throws an Exception when the component is not available in variables.
Implementation
String resolveClass(String component) {
final value = variables[component];
if (value == null) {
throw Exception('Unknown component "$component".');
}
return value;
}