findErrorReport method

ValueNotifier<ErrorReport?>? findErrorReport()

Implementation

ValueNotifier<ErrorReport?>? findErrorReport() {
  VNode? current = this;
  while (current != null) {
    if (current.kind == VNodeKind.component) {
      current = current as VComponent;
      if (current.errorReport != null) {
        return current.errorReport;
      }
    }

    current = current.parent;
  }

  return null;
}