onError method
Event called if the dropzone view has an error.
Implementation
Stream<DropzoneErrorEvent> onError({required int viewId}) {
return events.stream //
.where((event) => event.viewId == viewId && event is DropzoneErrorEvent)
.cast<DropzoneErrorEvent>();
}