DragDownDetails constructor Null safety

DragDownDetails(
  1. {Offset globalPosition,
  2. Offset? localPosition}
)

Creates details for a GestureDragDownCallback.

The globalPosition argument must not be null.

Implementation

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