readLine property

String? Function() readLine
getter/setter pair

Source of a single line of input. Replaced in tests to drive a wizard.

Returning null means end-of-input, exactly as stdin.readLineSync does.

Implementation

static String? Function() readLine = () => stdin.readLineSync();