how to call a method from another dart file? – Flutter
in my programme i want to call the same path inside a methode called getPhoto()=>upload(statefulwidget) to other file or statefulwidget Future getPhoto() async{ FirebaseFirestore fearbase = FirebaseFirestore.instance; Reference ref=FirebaseStorage.instance .ref() .child("${widget.user}/ProfileData") .child("Url_$postId"); await ref.putFile(file!); downloadUrl=await ref.getDownloadURL(); // upload image to…