desktop_drop library
Drop-in compatibility barrel for package:desktop_drop/desktop_drop.dart
(0.8.x and 0.9.2).
Migrate existing callers by changing only the package name in imports:
import 'package:file_drop/desktop_drop.dart';
Classes
- DesktopDrop
-
Window-level platform coordinator for
file_dropacross Desktop, Mobile, and Web/Wasm. - DragDetails
-
Hover and acceptance details delivered to
DropTarget.onWillAccept,DropTarget.onEnter, andDropTarget.onMove(desktop_drop 0.9.2parity). - DropDetails
-
Payload delivered to
DropTarget.onDrop(desktop_drop 0.9.2parity). - DropDirectoryItem
-
A dropped directory item matching
DropDirectoryItemindesktop_drop 0.9.2while also satisfyingis DropItemDirectoryfordesktop_drop 0.8.xcallers. - DropDoneDetails
-
Payload delivered to
DropTarget.onDragDonewhen files or directories are dropped onto an active target (desktop_drop 0.8.xparity). - DropDoneEvent
- Window-level raw event emitted when items are dropped onto the window.
- DropEnterEvent
- Window-level raw event emitted when a native drag enters the window.
- DropEvent
-
Base raw window-level drag event for
DesktopDropraw listeners. - DropEventDetails
-
Position details delivered to
DropTargethover callbacks (desktop_drop 0.8.xparity). - DropExitEvent
- Window-level raw event emitted when a native drag leaves the window.
- DropFileItem
-
A dropped file item matching
DropFileItemindesktop_drop 0.9.2while also satisfyingis DropItemFilefordesktop_drop 0.8.xcallers. - DropItemDirectory
-
A dropped directory item delivered by
DropTarget(desktop_drop 0.8.xandXDirectorycross_file 0.4.xcompatible class). - DropItemFile
-
A dropped regular file item delivered by
DropTarget(desktop_drop 0.8.xcompatible base class). - DropItemPreview
-
Metadata visible synchronously while deciding whether to accept or while
hovering (
desktop_drop 0.9.2parity). - DropOffer
-
Synchronous drag offer metadata inspected during target selection
(
desktop_drop 0.9.2parity). - DropStringItem
-
A dropped string representation (
text/plain,text/html,text/uri-list, or custom string MIME types) matchingdesktop_drop 0.9.2. - DropTarget
- A widget that accepts native OS file, directory, and string drag-and-drop gestures.
- DropUpdateEvent
- Window-level raw event emitted when a native drag moves inside the window.
- FileDropItem
-
Unified cross-platform file, directory, or string drop reference for
file_drop.
Enums
- DropItemKind
-
Broad item kinds available to synchronous drag acceptance checks
(
desktop_drop 0.9.2parity). - DropOperation
-
Drag-and-drop operation requested by a
DropTarget(desktop_drop 0.9.2parity).
Typedefs
- DropAcceptanceCallback = bool Function(DragDetails details)
-
Signature for synchronous drag acceptance predicates via
onWillAccept(desktop_drop 0.9.2parity). - DropItem = FileDropItem
-
Drop-in type alias matching
DropItemfromdesktop_drop. - FileSystemXDirectory = DropItemDirectory
-
Drop-in type alias matching
FileSystemXDirectoryfromcross_file 0.4.x. - FileSystemXFile = DropItemFile
-
Drop-in type alias matching
FileSystemXFilefromcross_file 0.4.x. -
OnDragCallback<
Detail> = void Function(Detail details) -
Signature for receiving drag hover lifecycle callbacks on a
DropTarget. - OnDragDoneCallback = void Function(DropDoneDetails details)
-
Signature for receiving completed drop operations via
onDragDone(desktop_drop 0.8.xparity). -
OnDropCallback
= FutureOr<
void> Function(DropDetails details) -
Signature for receiving completed drop operations via
onDrop(desktop_drop 0.9.2parity). - RawDropListener = void Function(DropEvent event)
-
Callback signature for window-level raw drag listeners on
DesktopDrop. - XDirectory = DropItemDirectory
-
Drop-in type alias matching
XDirectoryfromcross_file 0.4.x. - XEntity = FileDropItem
-
Drop-in type alias matching
XEntityfromcross_file 0.4.x. - XFile = FileDropItem
-
Drop-in type alias matching
XFilefromfile_selectorandcross_file.