has method

bool has(
  1. String name
)

Checks if a cookie exists in the request.

Implementation

bool has(String name) {
  if (_request == null) return false;
  for (final cookie in _request.cookies) {
    if (cookie.name == name) return true;
  }
  return false;
}