snapshotRenderObject method

RenderObject snapshotRenderObject()

Convenience getter to access the RenderObject when evaluating the WidgetSelector

Implementation

RenderObject snapshotRenderObject() {
  // There is not a single Element in the Flutter SDK that returns null for `renderObject`.
  // So we can safely assume that this cast never fails.
  return snapshot_file.snapshot(this).single.element.renderObject!;
}