LongPressDownDetails constructor Null safety

const LongPressDownDetails(
  1. {Offset globalPosition = Offset.zero,
  2. Offset? localPosition,
  3. PointerDeviceKind? kind}
)

Creates the details for a GestureLongPressDownCallback.

The globalPosition argument must not be null.

If the localPosition argument is not specified, it will default to the global position.

Implementation

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