getSessionId function
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;
}