LineChartStyle class

Constructors

LineChartStyle({required LegendStyle? legendStyle, required List<DatasetStyle> datasetStyles, RangeDatasetStyle? rangeDatasetStyle, AxisStyle? topAxisStyle, AxisStyle? bottomAxisStyle, AxisStyle? leftAxisStyle, AxisStyle? rightAxisStyle, HighlightStyle? highlightStyle, SelectionLabelStyle? selectionLabelStyle, Duration? animationDuration = const Duration(seconds: 1)})
LineChartStyle.fromTheme(BuildContext context, {List<Color>? datasetColors})
factory

Properties

animationDuration Duration?
the duration of animations when rendering the chart
final
bottomAxisStyle AxisStyle?
final
datasetStyles List<DatasetStyle>
final
hashCode int
The hash code for this object.
no setteroverride
highlightStyle HighlightStyle?
the style of the selection highlight
latefinal
leftAxisStyle AxisStyle?
final
legendStyle LegendStyle?
final
rangeDatasetStyle RangeDatasetStyle?
final
rightAxisStyle AxisStyle?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionLabelStyle SelectionLabelStyle?
the selection label style, which when specified enables a data label when the chart is touched
final
topAxisStyle AxisStyle?
final

Methods

copyRemoving({dynamic legend = false, dynamic selectionLabel = false, dynamic bottomAxis = false, dynamic topAxis = false, dynamic leftAxis = false, dynamic rightAxis = false}) LineChartStyle
Copies the style with the indicated elements removed. pass true to remove elements
copyRemovingAxis({bool left = false, bool right = false, bool top = false, bool bottom = false}) LineChartStyle
Copies the style with the indicated axis removed. pass true to remove the named axis.
copyWith({LegendStyle? legendStyle, List<DatasetStyle>? datasetStyles, RangeDatasetStyle? rangeDatasetStyle, AxisStyle? topAxisStyle, AxisStyle? bottomAxisStyle, AxisStyle? leftAxisStyle, AxisStyle? rightAxisStyle, SelectionLabelStyle? selectionLabelStyle, Duration? animationDuration, HighlightStyle? highlightStyle}) LineChartStyle
copyWithAxes({AxisStyle? topAxisStyle, AxisStyle? bottomAxisStyle, AxisStyle? leftAxisStyle, AxisStyle? rightAxisStyle}) LineChartStyle
Copies the style with the specified axes. Differs from copyWith in that unxpecified or null axes are not present in the copy. Useful for removing axes.
copyWithoutLegend() LineChartStyle
datasetStyleOfIndex(int index) DatasetStyle
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