current property
ServerContext
get
current
Get the current server context from the zone.
Implementation
static ServerContext get current {
final context = Zone.current[_zoneKey] as ServerContext?;
if (context == null) {
throw MissingServerContextException();
}
return context;
}