ChartSelectionLayer constructor

const ChartSelectionLayer({
  1. required SelectionOverlayBuilder builder,
  2. bool isSticky = false,
  3. double translation = 0.0,
  4. double? initialSelectedX,
  5. bool isStatic = false,
})

Creates a new instance of ChartSelectionLayer.

The builder is required, while isSticky, translation, and initialSelectedX have default values.

Implementation

const ChartSelectionLayer({
  required this.builder,
  this.isSticky = false,
  this.translation = 0.0,
  this.initialSelectedX,
  this.isStatic = false,
});