GestureEngine constructor

GestureEngine({
  1. HitTestEngine hitTestEngine = const HitTestEngine(),
  2. void onHover(
    1. ChartHitResult? hit,
    2. Offset position
    )?,
  3. void onTap(
    1. ChartHitResult? hit,
    2. Offset position
    )?,
  4. void onSelection(
    1. ChartHitResult hit
    )?,
  5. void onZoom(
    1. double scale,
    2. Offset focal
    )?,
  6. void onPan(
    1. double dx,
    2. double dy
    )?,
  7. bool enableCrosshair = true,
  8. bool enableZoomPan = true,
})

Implementation

GestureEngine({
  this.hitTestEngine = const HitTestEngine(),
  this.onHover,
  this.onTap,
  this.onSelection,
  this.onZoom,
  this.onPan,
  this.enableCrosshair = true,
  this.enableZoomPan = true,
});