onDropFile method

Stream<DropzoneDropFileEvent> onDropFile({
  1. required int viewId,
})
inherited

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>();
}