read static method

void read({
  1. int indexPos = -1,
})

Implementation

static void read({int indexPos = -1}) {
  if (indexPos > 0) {
    if (indexPos <= inputString.length - 1) {
      look = inputString[indexPos];
    }
  } else if (index <= inputString.length - 1) {
    look = inputString[index++];
  }
}