generateAndSaveXml method
Generates the XML file for the debit note and saves it to a file.
This method is used to generate the XML representation of the debit note and save it
to a file with the given fileName
. It asynchronously saves the file to the local storage.
Implementation
Future<void> generateAndSaveXml(String fileName) async {
saveToFile(toXml(), fileName);
}