onDropFiles method

Stream<DropzoneDropFilesEvent> onDropFiles({
  1. required int viewId,
})
inherited

Event called when the user drops multiple files onto the dropzone.

Implementation

Stream<DropzoneDropFilesEvent> onDropFiles({required int viewId}) {
  return events.stream //
      .where((event) =>
          event.viewId == viewId && event is DropzoneDropFilesEvent)
      .cast<DropzoneDropFilesEvent>();
}