askQuestion static method

String askQuestion(
  1. String question,
  2. String example
)

Implementation

static String askQuestion(String question, String example) {
  print("${yellow("$question?")} ${grey("example: $example")}");
  final ans = stdin.readLineSync();
  if (ans != null && ans.isNotEmpty) {
    return ans;
  } else {
    return askQuestion(question, example);
  }
}