BarChartBarStyle class

Contains various customization options for the bars of the chart.

Constructors

BarChartBarStyle({double width = 32, List<Color> colors = const [Color(0xFFFFFFFF)], List<Color>? selectedColors, List<Color>? borderColors, List<Color>? selectedBorderColors, BarBorder border = BarBorder.none, double borderStroke = 0, double zeroBarHeight = 2, double topRadius = 6, double zeroBarTopRadius = 2, Color? shadowColor, Color? selectedShadowColor, double shadowElevation = 0})
Constructs an instance of BarChartBarStyle.
const

Properties

barBorderPaint Paint
Gets a Paint for the bar border drawing.
no setter
barPaint Paint
Gets a Paint for the bar drawing.
no setter
border BarBorder
Bars borders that should be painted.
final
borderColors List<Color>?
List of bar border colors.
final
borderStroke double
Stroke of the border.
final
canPaintBorder bool
Whether bar border could to be painted or not.
no setter
canPaintShadow bool
Whether bar shadow could to be painted or not.
no setter
colors List<Color>
List of bar colors.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBorderColors List<Color>?
List of selected bar border colors.
final
selectedColors List<Color>?
List of selected bar colors.
final
selectedShadowColor Color?
Color of the selected bars shadow.
final
shadowColor Color?
Color of the shadow.
final
shadowElevation double
Elevation of the bar shadow.
final
showZeroBars bool
Whether zero bars are needed to be shown or not.
no setter
topRadius double
Radius of the top part of the bar.
final
width double
Width of the bar.
final
zeroBarHeight double
Height of the zero bar.
final
zeroBarTopRadius double
Radius of the top part of the zero bar.
final

Methods

copyWith({bool allowNullSelectedColors = false, bool allowNullBorderColors = false, bool allowNullSelectedBorderColors = false, bool allowNullShadowColor = false, bool allowNullSelectedShadowColor = false, double? width, List<Color>? colors, List<Color>? selectedColors, List<Color>? borderColors, List<Color>? selectedBorderColors, BarBorder? border, double? borderStroke, double? zeroBarHeight, double? topRadius, double? zeroBarTopRadius, Color? shadowColor, Color? selectedShadowColor, double? shadowElevation}) BarChartBarStyle
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