finishDelete function

Future<String?> finishDelete()

Implementation

Future<String?> finishDelete() async{
  if (cartLastAddedId.isNotEmpty){
    try{
      await dbDeleteDocumentInTable("booking", cartLastAddedId);
      //FirebaseFirestore.instance.collection("booking").doc(cartLastAddedId).delete();
    }catch(ex) {
      return "finishDelete " + ex.toString();
    }
  }
}