ChartTooltipLineShape<T extends ChartDataItem> class
Provides tooltip line shape.
- Inheritance
-
- Object
- ChartTooltipShape
- ChartTooltipLineShape
Constructors
- ChartTooltipLineShape({required Color backgroundColor, required Color circleBackgroundColor, required Color circleBorderColor, required Offset currentPos(T), required String onTextValue(T), required TextStyle textStyle, double circleBorderThickness = 2.0, double circleSize = 6.0, double marginBottom = 0.0, EdgeInsets padding = EdgeInsets.zero, double radius = 0.0, double triangleSideLength = 10.0})
-
const
Properties
- backgroundColor → Color
-
The background color of shape.
final
- circleBackgroundColor → Color
-
The circle background color of shape.
final
- circleBorderColor → Color
-
The circle border background color of shape.
final
- circleBorderThickness → double
-
The circle border thickness of shape.
final
- circleSize → double
-
The circle size of shape.
final
- currentPos → Offset Function(T)
-
The function return current position of shape.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- marginBottom → double
-
The margin bottom of shape.
final
- onTextValue → String Function(T)
-
The return return text value of shape.
final
- padding → EdgeInsets
-
The padding of shape.
final
- radius → double
-
The radius of shape.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
The TextStyle of shape.
final
- triangleSideLength → double
-
The triangle side length of shape.
final
Methods
-
draw(
Canvas canvas, ChartPainterData painterData, ChartTouchCallbackData touchedData, double tolerance) → void -
Draw tooltip line shape.
override
-
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.
inherited