firebaseFirestore.collection("Test").document("test123").set(hashMap);
I want to write this document inside the collection, But when the user was offline it is scheduled the operation until the Internet returns. But I want if there is no internet then it must cancel the write operation even if the internet is back.
If there is internet then will do the natural job and add the document to the server but if there is no internet I want to cancel the write operation even if the internet is back.