peek method Null safety

String peek (
  1. int number
)

peek forward

Implementation

String peek(int number) {
  return has(number)
      ? parsable.substring(position + number, position + number + 1)
      : throw error('Not enough space to peek $number');
}