BarItemOptions class
Extension options for bar items geometryPainter is set to BarGeometryPainter
Extra options included in BarGeometryPainter are:
radius
Define corner radius for each bar item
border
Define border width and color
gradient
Item can have gradient color
- Inheritance
-
- Object
- ItemOptions
- BarItemOptions
Constructors
- BarItemOptions({EdgeInsets padding = EdgeInsets.zero, EdgeInsets multiValuePadding = EdgeInsets.zero, double? maxBarWidth, double? minBarWidth, double startPosition = 0.5, BarItemBuilder barItemBuilder = _defaultBarItem})
-
Constructor for bar item options, has some extra options just for BarGeometryPainter
const
Properties
- barItemBuilder → BarItemBuilder
-
final
- geometryPainter → ChartGeometryPainter
-
Geometry
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder → ItemBuilder
-
finalinherited
- maxBarWidth → double?
-
Max width of item in the chart
finalinherited
- minBarWidth → double?
-
Min width of item in the chart
finalinherited
- multiValuePadding → EdgeInsets
-
Multi value chart padding, this will
group
values with same index from different lists use to make space between index changes in multi value charts Only used for multiple data lists when they are not stackedfinalinherited - padding → EdgeInsets
-
Item padding, if minBarWidth and padding are more then available space
padding will get ignored
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startPosition → double
-
Set start position.
This value ranges from 0.0 - 1.0.
finalinherited
Methods
-
animateTo(
ItemOptions endValue, double t) → ItemOptions -
Animate to next ItemOptions state
When making custom ItemOptions make sure to override this return custom painter
with all available options, otherwise changes in options won't be animated
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