TapDownDetails constructor Null safety

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

Creates details for a GestureTapDownCallback.

The globalPosition argument must not be null.

Implementation

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