TapUpDetails constructor

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

Creates a TapUpDetails data object.

Implementation

TapUpDetails({
  required this.kind,
  this.globalPosition = Offset.zero,
  Offset? localPosition,
}) : localPosition = localPosition ?? globalPosition;