so i've tried to upload an image to firestore, but it gives me the error Unsupported operation: _Namespace. Here's my method:
File pickedImage;
Future<Uri> uploadPic() async {
FirebaseStorage _storage = FirebaseStorage.instance;
StorageReference reference = _storage.ref().child("profile_pictures/");
StorageUploadTask uploadTask = reference.putFile(pickedImage);
Uri dowurl = await (await uploadTask.onComplete).ref.getDownloadURL();
return dowurl;
}