i want to use "docid" outside the function how to do it ?
getC() async {
Usersref.where("email", isEqualTo: widget.list['email'])
.get()
.then((QuerySnapshot snapshot) {
snapshot.docs.forEach((document) {
print(document.id);
final docid = document.id;
});
});
}