excelFactory property

Excel Function() excelFactory
getter/setter pair

Exports the given list of device documents to an Excel file and triggers a download in the browser.

This method creates a new Excel file, adds headers and device data rows, and then initiates a download of the generated .xlsx file for the user. If an error occurs, a snackbar with an error message is shown using the provided context.

context: The BuildContext used to show error messages. documents: The list of Appwrite Document objects containing device data to export.

Implementation

static Excel Function() excelFactory = Excel.createExcel;