throwSourceError function
Throws a formatted source error message with box styling.
Implementation
void throwSourceError(String message) {
final pre = 'Injectable Generator ';
throw ("\n${pre.padRight(72, '-')}\n$message\n${''.padRight(72, '-')} \n");
}