readLineSync method

  1. @override
String? readLineSync()
override

Reads a line synchronously from input.

Used for text input prompts where the user types a full line. Requires lineMode to be enabled for proper behavior. Returns null if end-of-input is reached.

Implementation

@override
String? readLineSync() {
  _calls.add('input.readLineSync');
  return 'test';
}