ChartStyle class Null safety

Constructors

ChartStyle({double volumeHeightFactor = 0.2, double priceLabelWidth = 48.0, double timeLabelHeight = 24.0, TextStyle timeLabelStyle = const TextStyle(fontSize: 16, color: Colors.grey), TextStyle priceLabelStyle = const TextStyle(fontSize: 12, color: Colors.grey), TextStyle overlayTextStyle = const TextStyle(fontSize: 16, color: Colors.white), Color priceGainColor = Colors.green, Color priceLossColor = Colors.red, Color volumeColor = Colors.grey, List<Paint> trendLineStyles = const [], Color priceGridLineColor = Colors.grey, Color selectionHighlightColor = const Color(0x33757575), Color overlayBackgroundColor = const Color(0xEE757575)})
const

Properties

hashCode int
The hash code for this object.
read-onlyinherited
overlayBackgroundColor Color
The background color of the overlay.
final
overlayTextStyle TextStyle
The style of overlay texts. These texts are drawn on top of the background color specified in overlayBackgroundColor.
final
priceGainColor Color
The color to use when the close price is higher than open price.
final
priceGridLineColor Color
The color of the price grid line.
final
priceLabelStyle TextStyle
The style of price labels (on the right of the chart).
final
priceLabelWidth double
The padding on the right-side of the chart.
final
priceLossColor Color
The color to use when the close price is lower than open price.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectionHighlightColor Color
The highlight color. This appears when user clicks on the chart.
final
timeLabelHeight double
The padding on the bottom-side of the chart.
final
timeLabelStyle TextStyle
The style of date/time labels (on the bottom of the chart).
final
trendLineStyles List<Paint>
The style of trend lines. If there are multiple lines, their styles will be chosen in the order of appearance in this list. If this list is shorter than the number of trend lines, a default blue paint will be applied.
final
volumeColor Color
The color of the volume bars.
final
volumeHeightFactor double
The percentage height of volume.
final

Methods

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

Operators

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