waitForEnter static method

Future<void> waitForEnter([
  1. String? message
])

Wait for user to press Enter

Implementation

static Future<void> waitForEnter([String? message]) async {
  stdout.write(message ?? 'Press Enter to continue...');
  stdin.readLineSync();
}