newQuestion static method
Implementation
static String newQuestion(String question) {
return Input(
prompt: question,
validator: (String x) {
if (x.isNotEmpty) {
return true;
} else {
throw ValidationError('Nenhuma entrada');
}
},
).interact();
}