checkrotation method
dynamic
checkrotation()
Implementation
checkrotation() {
HelperImage().checkRotation(fileSelected!).then((value) {
if (value != null) {
rotaion = value;
if (mounted) {
setState(() {});
}
}
});
widget.imageSelected.forEach((element) async {
// element.rotation = 0;
await HelperImage().checkRotation(element.file!).then((value) {
if (value != null) {
element.rotation = value;
} else {
element.rotation = 0;
}
if (mounted) {
setState(() {});
}
});
});
}