onFileAdded property
Optional callback triggered when a file is added.
This is useful for tracking the addition of new files. This callback is executed when a file is successfully added to the upload list.
- The callback receives the added file as a parameter.
- This can be used to update the UI or perform additional actions when a file is added.
- If the callback is not provided, no action will be taken when a file is added.
Implementation
final void Function(TogeFileUploadEntity file)? onFileAdded;