onLeave method

Stream<DropzoneLeaveEvent> onLeave({
  1. required int viewId,
})
inherited

Event called when the user leaves a dropzone.

Implementation

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