readLineSync method
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() {
if (_lineQueue.isEmpty) {
return null;
}
return _lineQueue.removeAt(0);
}