Hi Charisa, :)
What is the type of data that you are passing as parameter to the field image in the method below. In blue is the line 78, which is marked as an error in your log. I highlighted in yellow the image parameter, that expects a member called path. I thought that image should be some object, not a string ;)
I hope that this helps you :)
static Future<void> updateLiveStore({displayName, image, livepic}) async {
StorageReference storageReference = FirebaseStorage.instance
.ref()
.child('$livepic/${Path.basename(image.path)}');
StorageUploadTask uploadTask = storageReference.putFile(image);
await uploadTask.onComplete;
await storageReference.getDownloadURL().then((fileURL) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setString('displayName', displayName);
await prefs.setString('image', fileURL);
await _db.collection(userCollection).document(displayName).updateData({
'displayName': displayName,
'image': fileURL,
});
return true;
});
}