ChartTooltipBarShape<T extends ChartDataItem> class
Provides tooltip bar shape.
- Inheritance
-
- Object
- ChartTooltipShape
- ChartTooltipBarShape
Constructors
- ChartTooltipBarShape({required Color backgroundColor, required Offset currentPos(T), required Size currentSize(T), required String onTextValue(T), required TextStyle textStyle, 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
- currentPos → Offset Function(T)
-
The function return current position of shape.
final
- currentSize → Size Function(T)
-
The function return current size 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 function 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 bar 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