LongPressMoveUpdateDetails constructor Null safety

const LongPressMoveUpdateDetails(
  1. {Offset globalPosition = Offset.zero,
  2. Offset? localPosition,
  3. Offset offsetFromOrigin = Offset.zero,
  4. Offset? localOffsetFromOrigin}
)

Creates the details for a GestureLongPressMoveUpdateCallback.

The globalPosition and offsetFromOrigin arguments must not be null.

Implementation

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