generateImage method
- VoidCallback onEnd
Implementation
void generateImage(VoidCallback onEnd) {
RenderRepaintBoundary boundary =
_globalKey.currentContext.findRenderObject();
boundary.toImage().then((value) {
_image = value;
onEnd?.call();
});
}