SerialTapDownDetails constructor Null safety

SerialTapDownDetails(
  1. {Offset globalPosition,
  2. Offset? localPosition,
  3. required PointerDeviceKind kind,
  4. int buttons,
  5. int count}
)

Creates details for a GestureSerialTapDownCallback.

The count argument must be greater than zero.

Implementation

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