GestureDetails constructor

const GestureDetails({
  1. required GestureKind gestureKind,
  2. required PointerDeviceKind pointerDeviceKind,
  3. required TextElement element,
  4. required String shownText,
  5. required String actionText,
  6. Offset globalPosition = Offset.zero,
  7. Offset localPosition = Offset.zero,
})

Creates a GestureDetails containing details on a gesture and the element where the gesture was detected.

Implementation

const GestureDetails({
  required this.gestureKind,
  required this.pointerDeviceKind,
  required this.element,
  required this.shownText,
  required this.actionText,
  this.globalPosition = Offset.zero,
  this.localPosition = Offset.zero,
});