ZoomableTenunChart constructor

const ZoomableTenunChart({
  1. Key? key,
  2. BaseChartConfig? config,
  3. ChartDrillDownController? drillController,
  4. double? width,
  5. double? height,
  6. EdgeInsetsGeometry padding = EdgeInsets.zero,
  7. ZoomConstraints zoomConstraints = const ZoomConstraints(),
  8. bool showMinimap = false,
  9. bool showResetButton = true,
  10. bool showBreadcrumbs = true,
  11. double minimapHeight = 28,
  12. void onTap(
    1. double fraction,
    2. ChartZoomController zoom
    )?,
  13. void onCrosshairMove(
    1. double fraction
    )?,
  14. void onCrosshairEnd()?,
  15. void onDoubleTap(
    1. double fraction,
    2. ChartZoomController zoom
    )?,
  16. ChartZoomController? zoomController,
})

Implementation

const ZoomableTenunChart({
  super.key,
  this.config,
  this.drillController,
  this.width,
  this.height,
  this.padding = EdgeInsets.zero,
  this.zoomConstraints = const ZoomConstraints(),
  this.showMinimap = false,
  this.showResetButton = true,
  this.showBreadcrumbs = true,
  this.minimapHeight = 28,
  this.onTap,
  this.onCrosshairMove,
  this.onCrosshairEnd,
  this.onDoubleTap,
  this.zoomController,
}) : assert(
       config != null || drillController != null,
       'Provide either config or drillController',
     );