drop static method

void drop()

Drops the active session payload onto the hovered target and resets session state.

Implementation

static void drop() {
  final session = _activeSession;
  final target = _lastHoveredTarget;
  if (session != null &&
      session.sourceElement.mounted &&
      target != null &&
      target.mounted) {
    target.handleDrop(session);
  }
  cancelDrag();
}