resolveClass method

String resolveClass(
  1. String component
)

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;
}