scanChar method Null safety

  1. @override
bool scanChar(
  1. int character
)
override

If the next character in the string is character, consumes it.

Returns whether or not character was consumed.

Implementation

@override
bool scanChar(int character) {
  if (!super.scanChar(character)) return false;
  _adjustLineAndColumn(character);
  return true;
}