DropzoneView constructor

const DropzoneView({
  1. Key? key,
  2. DragOperation? operation,
  3. CursorType? cursor,
  4. List<String>? mime,
  5. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
  6. DropzoneViewCreatedCallback? onCreated,
  7. VoidCallback? onLoaded,
  8. ValueChanged<String?>? onError,
  9. VoidCallback? onHover,
  10. ValueChanged? onDrop,
  11. ValueChanged<String?>? onDropInvalid,
  12. ValueChanged<List?>? onDropMultiple,
  13. VoidCallback? onLeave,
})

Implementation

const DropzoneView({
  Key? key,
  this.operation,
  this.cursor,
  this.mime,
  this.gestureRecognizers,
  this.onCreated,
  this.onLoaded,
  this.onError,
  this.onHover,
  this.onDrop,
  this.onDropInvalid,
  this.onDropMultiple,
  this.onLeave,
})  : assert(onDrop != null || onDropMultiple != null,
          'Either onDrop or onDropMultiple is required'),
      super(key: key);