showConttext static method

String showConttext(
  1. int depth
)

Implementation

static String showConttext(int depth) {
  String contextText = "";

  if (index + 100 <= inputString.length - 1) {
    contextText = inputString.substring(index, index + 100);
  } else {
    contextText = inputString.substring(index);
  }

  return '<<$depth> <$contextText>>';
}