canAcceptDrop property
If set, rejected drop targets resolve to null. Receives the dragged
key, the candidate new parent, and the final-list index.
Must NOT mutate treeController. It is invoked mid-resolution, per pointer event, and resolve snapshots dragged-key state (parent and live index) once per call, so a mutation from inside the callback would be read inconsistently within the same resolve.
Implementation
final bool Function({required TKey movingKey, TKey? newParent, int? index})?
canAcceptDrop;