SerialTapUpDetails constructor Null safety

SerialTapUpDetails(
  1. {Offset globalPosition = Offset.zero,
  2. Offset? localPosition,
  3. PointerDeviceKind? kind,
  4. int count = 1}
)

Creates details for a GestureSerialTapUpCallback.

The count argument must be greater than zero.

Implementation

SerialTapUpDetails({
  this.globalPosition = Offset.zero,
  Offset? localPosition,
  this.kind,
  this.count = 1,
}) : assert(count > 0),
     localPosition = localPosition ?? globalPosition;