onDrop method

  1. @Deprecated('Use onDropFile or onDropString instead.')
Stream<DropzoneDropEvent> onDrop({
  1. required int viewId,
})
inherited

Event called when the user drops a file onto the dropzone.

Implementation

@Deprecated('Use onDropFile or onDropString instead.')
Stream<DropzoneDropEvent> onDrop({required int viewId}) {
  return events.stream //
      .where((event) => event.viewId == viewId && event is DropzoneDropEvent)
      .cast<DropzoneDropEvent>();
}