maybe method Null safety

Token? maybe(
  1. TokenType type
)

Implementation

Token? maybe(TokenType type) => next(type) ? _current : null;