ForcePressDetails constructor

ForcePressDetails({
  1. required Offset globalPosition,
  2. Offset? localPosition,
  3. required double pressure,
})

Creates details for a GestureForcePressStartCallback, GestureForcePressPeakCallback or GestureForcePressEndCallback.

Implementation

ForcePressDetails({
  required this.globalPosition,
  Offset? localPosition,
  required this.pressure,
}) : localPosition = localPosition ?? globalPosition;