WidgetSnapshot.renderObject constructor

WidgetSnapshot.renderObject(
  1. RenderObject? _renderObject,
  2. Rect bounds
)

Creates a new widget snapshot backed by a render object. bounds represents the part of the render object that should be visible.

Implementation

WidgetSnapshot.renderObject(this._renderObject, Rect bounds)
    : _image = null,
      _renderObjectBounds = bounds;