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