SelectionSettings class

Provides options for the selection of series or data points.

By using this class, The color and width of the selected and unselected series or data points can be customized.

Annotations
  • @Deprecated('Use SelectionBehavior instead. ' 'This feature was deprecated from next release onwards')

Constructors

SelectionSettings({bool? enable, Color? selectedColor, Color? selectedBorderColor, double? selectedBorderWidth, Color? unselectedColor, Color? unselectedBorderColor, double? unselectedBorderWidth, double? selectedOpacity, double? unselectedOpacity, RangeController? selectionController})
Creating an argument constructor of SelectionSettings class.

Properties

enable bool
Enables or disables the selection.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBorderColor Color?
Border color of the selected data points or series.
final
selectedBorderWidth double?
Border width of the selected data points or series.
final
selectedColor Color?
Color of the selected data points or series.
final
selectedOpacity double
Opacity of the selected series or data point.
final
selectionController → RangeController?
Controller used to set the maximum and minimum values for the chart.By providing the selection controller, the maximum and The minimum range of selected series or points can be customized
final
unselectedBorderColor Color?
Border color of the unselected data points or series.
final
unselectedBorderWidth double?
Border width of the unselected data points or series.
final
unselectedColor Color?
Color of the unselected data points or series.
final
unselectedOpacity double
Opacity of the unselected series or data point.
final

Methods

getSelectedDataPoints(CartesianSeries _series) List<int>
provides the list of selected point indices for given series.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectDataPoints(int pointIndex, [int seriesIndex = 0]) → void
/Selects or deselects the specified data point in the series.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited