toImage method
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');
}