getSessionId function

String getSessionId(
  1. Request request
)

Implementation

String getSessionId(Request request) {
  final context = request.context;
  if (!context.containsKey(_sessionKey)) {
    throw StateError('The session id was not found in the request context');
  }

  return context[_sessionKey] as String;
}