generateAndSaveXml method
Generates and saves the XML representation of the invoice to a file.
This method uses the toXml() method to generate the XML and then saves it to a file
using the provided fileName
. The method is asynchronous.
Implementation
Future<void> generateAndSaveXml(String fileName) async {
await saveToFile(toXml(), fileName);
}