ModBarChart class

Inheritance

Constructors

ModBarChart.new({Key? key, required String title, TextStyle? titleStyle, TextAlign titleAlign = TextAlign.left, List<ChartActionButton> actions = const [], ModChartData? initialData, Future<ModChartData> fetchData(String period)?, dynamic onPeriodChange(String)?, dynamic onDataLoaded(String, List<ModChartDataItem>)?, dynamic onBarClick(ModChartDataItem)?, dynamic onError(String)?, BarChartOrientation orientation = BarChartOrientation.horizontal, double barHeight = 36, double barSpacing = 16, double barRadius = 8, int maxItemsBeforeScroll = 12, bool showTooltip = true, bool showValueLabels = true, bool enableZoom = true, double minZoom = 50.0, double maxZoom = 200.0, double chartContainerHeight = 400.0, double? barChartWidth, EdgeInsets? padding, Widget? footer, List<Color>? customColors, Color? backgroundColor, Color? containerBackgroundColor, IconData? zoomInIcon, IconData? zoomOutIcon, IconData? zoomResetIcon, ChartActionButtonTheme? actionButtonTheme, bool showLegendBorder = true, bool showLegendContainer = true, bool enableFooter = false, String? emptyStateTitle, IconData? emptyStateIcon, Color? lightSelectedBackgroundColor, Color? lightUnselectedBackgroundColor, Color? lightSelectedTextColor, Color? lightUnselectedTextColor, Color? lightBorderColor, Color? darkSelectedBackgroundColor, Color? darkUnselectedBackgroundColor, Color? darkSelectedTextColor, Color? darkUnselectedTextColor, Color? darkBorderColor})
const

Properties

actionButtonTheme ChartActionButtonTheme?
final
actions List<ChartActionButton>
final
backgroundColor Color?
final
barChartWidth double?
final
barHeight double
final
barRadius double
final
barSpacing double
final
chartContainerHeight double
final
containerBackgroundColor Color?
final
customColors List<Color>?
final
darkBorderColor Color?
final
darkSelectedBackgroundColor Color?
final
darkSelectedTextColor Color?
final
darkUnselectedBackgroundColor Color?
final
darkUnselectedTextColor Color?
final
emptyStateIcon IconData?
final
emptyStateTitle String?
final
enableFooter bool
final
enableZoom bool
final
fetchData Future<ModChartData> Function(String period)?
final
final
hashCode int
The hash code for this object.
no setterinherited
initialData ModChartData?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lightBorderColor Color?
final
lightSelectedBackgroundColor Color?
final
lightSelectedTextColor Color?
final
lightUnselectedBackgroundColor Color?
final
lightUnselectedTextColor Color?
final
maxItemsBeforeScroll int
final
maxZoom double
final
minZoom double
final
onBarClick → dynamic Function(ModChartDataItem)?
final
onDataLoaded → dynamic Function(String, List<ModChartDataItem>)?
final
onError → dynamic Function(String)?
final
onPeriodChange → dynamic Function(String)?
final
orientation BarChartOrientation
final
padding EdgeInsets?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLegendBorder bool
final
showLegendContainer bool
final
showTooltip bool
final
showValueLabels bool
final
title String
final
titleAlign TextAlign
final
titleStyle TextStyle?
final
zoomInIcon IconData?
final
zoomOutIcon IconData?
final
zoomResetIcon IconData?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ModBarChart>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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