throwIf function
Throws an InvalidGenerationSourceError if the given condition is true.
Implementation
void throwIf(bool condition, String message, {Element? element}) {
if (condition) {
throw InvalidGenerationSourceError(message, element: element);
}
}