setFromPath method
this only works in
Implementation
Future<void> setFromPath(String path) async {
try{
await setFileFromPath(path).then((r) {
_file = r.platformFile;
_error = r.error;
_hasImage = !r.error;
notifyListeners();
});
} catch (e){
debugPrint('n_image_piker e1: $e');
_error = true;
_hasImage = false;
notifyListeners();
}
}