LongPressMoveUpdateDetails constructor Null safety

const LongPressMoveUpdateDetails(
  1. {Offset globalPosition,
  2. Offset? localPosition,
  3. Offset offsetFromOrigin,
  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;