TooltipStyle class

Contains various customization options for the tooltip.

Constructors

TooltipStyle({Color color = const Color(0xFFFFFFFF), TextStyle titleStyle = defaultTitleStyle, TextStyle subtitleStyle = defaultSubtitleStyle, EdgeInsets padding = defaultPadding, double spacing = 2, double radius = 8, double triangleWidth = 12, double triangleHeight = 5, Color shadowColor = const Color(0xFF000000), double shadowElevation = 4, double bottomMargin = 6})
Constructs an instance of TooltipStyle.
const

Properties

bottomMargin double
Bottom margin of the tooltip.
final
color Color
Color of the tooltip.
final
defaultChartPadding EdgeInsets
Default padding of the chart caused by tooltip.
no setter
hashCode int
The hash code for this object.
no setteroverride
padding EdgeInsets
Padding around title and subtitle of the tooltip.
final
paint Paint
Gets a Paint for the tooltip drawing.
no setter
radius double
Circular radius of the tooltip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color
Shadow color of the tooltip.
final
shadowElevation double
Elevation of the tooltip.
final
spacing double
Spacing between title and subtitle of the tooltip.
final
subtitleStyle TextStyle
Subtitle style of the tooltip.
final
titleStyle TextStyle
Title style of the tooltip.
final
tooltipHeight double
Gets size of the tooltip based on following:
no setter
tooltipHorizontalOverflowWidth double
Gets horizontal overflow width of the tooltip based on following:
no setter
triangleHeight double
Height of the tooltip triangle.
final
triangleWidth double
Width of the tooltip triangle.
final

Methods

copyWith({Color? color, TextStyle? titleStyle, TextStyle? subtitleStyle, EdgeInsets? padding, double? spacing, double? radius, double? triangleWidth, double? triangleHeight, Color? shadowColor, double? shadowElevation, double? bottomMargin}) TooltipStyle
Creates a copy of the current object with new values specified in arguments.
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