capture method

Image? capture()

Implementation

ui.Image? capture() {
  final renderObject = _containerKey.currentContext!.findRenderObject()
      as RenderRepaintBoundary;

  return renderObject.toImageSync(pixelRatio: pixelRatio);
}