If the widget is in the widget tree, use this method.
if the fileName is not set, it sets the file name as "davinci".
you can define whether to openFilePreview or returnImageUint8List
openFilePreview is true by default.
Context is required.
If the widget is not in the widget tree, use this method.
if the fileName is not set, it sets the file name as "davinci".
you can define whether to openFilePreview or returnImageUint8List
If the image is blurry, calculate the pixelratio dynamically. See the readme
for more info on how to do it.
Context is required.