onWillAccept property

  1. @Deprecated('Use onWillAcceptWithDetails instead. ' 'This callback is similar to onWillAcceptWithDetails but does not provide drag details. ' 'This feature was deprecated after v3.14.0-0.2.pre.')
DragTargetWillAccept<T>? onWillAccept
final

Called to determine whether this widget is interested in receiving a given piece of data being dragged over this drag target.

Called when a piece of data enters the target. This will be followed by either onAccept and onAcceptWithDetails, if the data is dropped, or onLeave, if the drag leaves the target.

Equivalent to onWillAcceptWithDetails, but only includes the data.

Must not be provided if onWillAcceptWithDetails is provided.

Implementation

@Deprecated(
  'Use onWillAcceptWithDetails instead. '
  'This callback is similar to onWillAcceptWithDetails but does not provide drag details. '
  'This feature was deprecated after v3.14.0-0.2.pre.'
)
final DragTargetWillAccept<T>? onWillAccept;