toImage method

Future<Image> toImage(
  1. double pixelRatio
)
inherited

Implementation

Future<Image> toImage(double pixelRatio) async {
  for (final renderObject in widgetRenderObjectIterator) {
    try {
      return await renderObject.toImage(pixelRatio: pixelRatio);
    } catch (_) {
      continue;
    }
  }
  throw FlutterError('Can not export images from $this');
}