onError method

Stream<DropzoneErrorEvent> onError({
  1. required int viewId,
})
inherited

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