isBooleanOrNullLiteral function

bool isBooleanOrNullLiteral(
  1. String token
)

Checks if a token is a boolean or null literal (true, false, null).

Implementation

bool isBooleanOrNullLiteral(String token) {
  return token == trueLiteral || token == falseLiteral || token == nullLiteral;
}