SelectionBehavior 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.

Constructors

SelectionBehavior({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 SelectionBehaviorclass.

Properties

enable bool
Enables or disables the selection. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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
Returns a string representation of this object.
inherited

Operators

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