BarChartTooltipStyle class
Contains various customization options for the tooltip.
Constructors
- BarChartTooltipStyle({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 BarChartTooltipStyle.
const
Properties
- bottomMargin → double
-
Bottom margin of the tooltip.
final
- color → Color
-
Color of the tooltip.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsets
-
Padding around title and subtitle of the tooltip.
final
- 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
- tooltipPaint → Paint
-
Gets a Paint for the tooltip drawing.
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}) → BarChartTooltipStyle - 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
Constants
- defaultPadding → const EdgeInsets
- defaultSubtitleStyle → const TextStyle
- defaultTitleStyle → const TextStyle