onAccept property

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

Called when an acceptable piece of data was dropped over this drag target. It will not be called if data is null.

Equivalent to onAcceptWithDetails, but only includes the data.

Implementation

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