nextLine method

Future<String> nextLine({
  1. Encoding encoding = systemEncoding,
})

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;