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 = false, Color? selectedColor, Color? selectedBorderColor, double? selectedBorderWidth, Color? unselectedColor, Color? unselectedBorderColor, double? unselectedBorderWidth, double selectedOpacity = 1.0, double unselectedOpacity = 0.5, RangeController? selectionController, bool toggleSelection = true})
- Creating an argument constructor of SelectionBehavior class.
Properties
- enable → bool
-
Enables or disables the selection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parentBox ↔ RenderBox?
-
getter/setter pairinherited
- 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
- toggleSelection → bool
-
Decides whether to deselect the selected item or not.
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
-
copyWith(
{bool? enable, Color? selectedColor, Color? unselectedColor, Color? selectedBorderColor, Color? unselectedBorderColor, double? selectedBorderWidth, double? unselectedBorderWidth, double? selectedOpacity, double? unselectedOpacity, bool? toggleSelection}) → SelectionBehavior -
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