onDownloadCompleted property

DownloadSuccessCallback? onDownloadCompleted
final

Receives the exported bytes and suggested file name.

On Web, runs after the browser download starts. On native platforms, replaces the default file saving; the callback must save the bytes itself. Asynchronous callbacks are awaited before the export finishes.

Implementation

final DownloadSuccessCallback? onDownloadCompleted;