namePrompt method
void
namePrompt()
Implementation
void namePrompt() {
var name = argResults?['name'] as String?;
while (name == null || name.isEmpty) {
name = logger.prompt(
"What's the name of the ${green.wrap('controller')}?",
);
}
_name = name.trim();
}