readLine abstract method

Future<String?> readLine({
  1. bool hidden = false,
})

Reads one line as the terminal reads it, without its line break; null at the end of input. hidden switches echo off while it reads, where input is a terminal.

Implementation

Future<String?> readLine({bool hidden = false});