toImage method

Future<Image> toImage([
  1. double pixelRatio = 1.0
])

Implementation

Future<Image> toImage([double pixelRatio = 1.0]) {
  assert(isRepaintBoundary);
  final OffsetLayer offsetLayer = layer as OffsetLayer;
  return offsetLayer.toImage(Offset.zero & size, pixelRatio: pixelRatio);
}