I want to take screenshot as jpg file not png.
RenderRepaintBoundary boundary = _globalKey.currentContext.findRenderObjec