onDropInvalid method

Stream<DropzoneDropInvalidEvent> onDropInvalid({
  1. required int viewId,
})
inherited

Event called when the user tries to drop an invalid file onto the dropzone.

Implementation

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