LongPressStartDetails constructor Null safety

const LongPressStartDetails(
  1. {Offset globalPosition = Offset.zero,
  2. Offset? localPosition}
)

Creates the details for a GestureLongPressStartCallback.

The globalPosition argument must not be null.

Implementation

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