get method

String? get(
  1. String name
)

Gets a cookie value from the request.

Implementation

String? get(String name) {
  if (_request == null) return null;
  for (final cookie in _request.cookies) {
    if (cookie.name == name) return cookie.value;
  }
  return null;
}