SparkChartMarker class

Adds and customizes the markers.

Markers are used to provide information about the exact point location. You can add a shape to adorn each data point. Markers can be enabled by using the displayMode property of SparkChartMarker.

Provides the options of color, borderWidth, borderColor and shape of the marker to customize the appearance.

Annotations

Constructors

SparkChartMarker({SparkChartMarkerDisplayMode displayMode = SparkChartMarkerDisplayMode.none, Color? borderColor, double borderWidth = 2, Color? color, double size = 5, SparkChartMarkerShape shape = SparkChartMarkerShape.circle})
Creates an instance of spark chart marker to add and customizes the marker in spark chart widget. To make, the marker visible, set displayeMode property value as SparkChartMarkerDisplayMode.all.
const

Properties

borderColor Color?
Customizes the border color of the marker. The color of the border gets applied based on the current theme of the application if the border color value is set to null.
final
borderWidth double
Customizes the border width of the marker.
final
color Color?
Customizes the color of the marker. The color is set based on the current application theme, if its value is set to null.
final
displayMode SparkChartMarkerDisplayMode
Enables the markers in different modes.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape SparkChartMarkerShape
Customizes the marker shape. The SparkChartMarkerShape has pre-defined sets of marker shape.
final
size double
Customizes the marker size. This value is applied for both the width and height of the marker.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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