nextLine method
Returns a future that completes with the next line.
This is similar to the standard Stdin.readLineSync, but asynchronous.
Implementation
Future<String> nextLine({Encoding encoding = systemEncoding}) =>
lines(encoding: encoding).first;