WidgetSnapshot.image constructor

WidgetSnapshot.image(
  1. Image? _image
)

Creates a new widget snapshot backed by ui.Image. This is used on platforms that can rasterize widgets to images (Native + CanvasKit).

Implementation

WidgetSnapshot.image(this._image)
    : _renderObject = null,
      _renderObjectBounds = null;