SelectNearest<D> constructor

SelectNearest<D>({
  1. SelectionModelType selectionModelType = common.SelectionModelType.info,
  2. SelectionMode selectionMode = common.SelectionMode.expandToDomain,
  3. bool selectAcrossAllDrawAreaComponents = false,
  4. bool selectClosestSeries = true,
  5. SelectionTrigger eventTrigger = common.SelectionTrigger.tap,
  6. int? maximumDomainDistancePx,
})

Implementation

factory SelectNearest(
    {common.SelectionModelType selectionModelType =
        common.SelectionModelType.info,
    common.SelectionMode selectionMode = common.SelectionMode.expandToDomain,
    bool selectAcrossAllDrawAreaComponents = false,
    bool selectClosestSeries = true,
    common.SelectionTrigger eventTrigger = common.SelectionTrigger.tap,
    int? maximumDomainDistancePx}) {
  return new SelectNearest._internal(
      selectionModelType: selectionModelType,
      selectionMode: selectionMode,
      selectAcrossAllDrawAreaComponents: selectAcrossAllDrawAreaComponents,
      selectClosestSeries: selectClosestSeries,
      eventTrigger: eventTrigger,
      desiredGestures: SelectNearest._getDesiredGestures(eventTrigger),
      maximumDomainDistancePx: maximumDomainDistancePx);
}