peek method Null safety
- 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');
}
peek forward
String peek(int number) {
return has(number)
? parsable.substring(position + number, position + number + 1)
: throw error('Not enough space to peek $number');
}