current property
RenderContext
get
current
Get the current render context (throws if not in SSR zone).
Implementation
static RenderContext get current {
final ctx = Zone.current[_contextKey];
if (ctx == null) {
throw StateError('No RenderContext in current zone. Are you in SSR?');
}
return ctx as RenderContext;
}