onDropFile method
Event called when the user drops a file onto the dropzone.
Implementation
Stream<DropzoneDropFileEvent> onDropFile({required int viewId}) {
return events.stream //
.where(
(event) => event.viewId == viewId && event is DropzoneDropFileEvent)
.cast<DropzoneDropFileEvent>();
}