NiceDropZone<T extends Object> constructor

const NiceDropZone<T extends Object>({
  1. Key? key,
  2. List<T> acceptedTypes = const [],
  3. void onDrop(
    1. T data
    )?,
  4. void onWillAccept(
    1. T data
    )?,
  5. required Widget child,
  6. Widget? activeChild,
  7. Widget? hoverChild,
  8. Color? backgroundColor,
  9. Color? activeColor,
  10. BorderRadius? borderRadius,
  11. bool enabled = true,
})

Implementation

const NiceDropZone({
  super.key,
  this.acceptedTypes = const [],
  this.onDrop,
  this.onWillAccept,
  required this.child,
  this.activeChild,
  this.hoverChild,
  this.backgroundColor,
  this.activeColor,
  this.borderRadius,
  this.enabled = true,
});