prompt function
Get text
Implementation
Future<String> prompt(String? text, {Stream<List<int>>? stdin}) async {
  stdout.write('${(text?.isNotEmpty ?? false) ? '$text' : 'Enter text'}: ');
  await stdout.safeFlush();
  return await _promptGetText(stdin: stdin);
}