SelectNearest<D> constructor
SelectNearest<D> ({
- SelectionModelType selectionModelType = common.SelectionModelType.info,
- SelectionMode selectionMode = common.SelectionMode.expandToDomain,
- bool selectAcrossAllDrawAreaComponents = false,
- bool selectClosestSeries = true,
- SelectionTrigger eventTrigger = common.SelectionTrigger.tap,
- 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,
}) =>
SelectNearest._internal(
selectionModelType: selectionModelType,
selectionMode: selectionMode,
selectAcrossAllDrawAreaComponents: selectAcrossAllDrawAreaComponents,
selectClosestSeries: selectClosestSeries,
eventTrigger: eventTrigger,
desiredGestures: SelectNearest._getDesiredGestures(eventTrigger),
maximumDomainDistancePx: maximumDomainDistancePx,
);