NativeDropView constructor
const
NativeDropView({
- Key? key,
- required Widget child,
- int allowedTotal = 0,
- List<
DropDataType> ? allowedDropDataTypes, - List<
String> ? allowedDropFileExtensions, - bool receiveNonAllowedItems = true,
- required DropViewLoadingCallback loading,
- required DropViewDataReceivedCallback dataReceived,
- Color? backgroundColor,
- Color? borderColor,
- int? borderWidth,
- DropViewCreatedCallback? created,
A widget that adds drag and drop functionality
Must set allowedDropDataTypes or allowedDropFileExtensions
Implementation
const NativeDropView(
{Key? key,
required this.child,
this.allowedTotal = 0,
this.allowedDropDataTypes,
this.allowedDropFileExtensions,
this.receiveNonAllowedItems = true,
required this.loading,
required this.dataReceived,
this.backgroundColor,
this.borderColor,
this.borderWidth,
this.created})
: assert((borderColor == null && borderWidth == null) ||
(borderColor != null && borderWidth != null) ||
allowedDropDataTypes != null ||
allowedDropFileExtensions != null ||
allowedTotal >= 0),
super(key: key);