LongPressEndDetails constructor

const LongPressEndDetails(
  1. {Offset globalPosition: Offset.zero,
  2. Offset localPosition,
  3. Velocity velocity: Velocity.zero}
)

Creates the details for a GestureLongPressEndCallback.

The globalPosition argument must not be null.

Implementation

const LongPressEndDetails({
  this.globalPosition = Offset.zero,
  Offset localPosition,
  this.velocity = Velocity.zero,
}) : assert(globalPosition != null),
     localPosition = localPosition ?? globalPosition;