runtime property

ComponentRuntime get runtime

Implementation

ComponentRuntime get runtime {
  final contextComponent = RenderContext.currentComponent;
  if (contextComponent == this) {
    return RenderContext.runtime;
  }

  final r = _runtime;
  if (r == null) {
    throw StateError('Component is not mounted');
  }
  return r;
}