linput function

String linput()

Function for work with input iterator. Returns a value entered in terminal or value inserted before running

Implementation

String linput() {
  if (input == null) {
    return stdin.readLineSync()!;
  } else {
    final newInp = _inp.current;
    _inp.moveNext();
    return newInp;
  }
}