DropHandler typedef

DropHandler = FutureOr<bool> Function(DropEvent drop)

DropHandlers are registered as callbacks to be called when files are dropped onto the app window. drop groups every file of one drag session. Temp files are deleted once the drop is handled, so copy them elsewhere first to keep them.

A group may hold fewer files than the drag carried when individual copies fail; such a partial delivery is additionally reported as an error event.

The handler must return true if it has handled the drop.

Currently delivered on Android only.

Implementation

typedef DropHandler = FutureOr<bool> Function(DropEvent drop);