SerialTapUpDetails constructor Null safety

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

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;