SimpleBarGraph class

SimpleBarGraph is a simplified bar graph module suitable for fairly large data representation. Groups of data is formed and provided to the controller. The controller is responsible for notifying listeners of a data bar selection.

graphHeight is used to set just the height of the bar (with its primary label) in layout. That is, the actual height of the graph is = graphHeight - text label height.

Inheritance

Constructors

SimpleBarGraph({@required GraphController controller, double graphHeight = 250, double graphIndicatorRowHeight = 40.0, double barWidth = 60, bool showGroupLabels = true})

Properties

barWidth double
The width of an individual bar
final
controller GraphController
Provides data for representation and updates listeners with data selection
final
graphHeight double
Height of the graph. Controls the height of a bar with its label
final
graphIndicatorRowHeight double
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
showGroupLabels bool
Should the group labels show?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SimpleBarGraphState
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.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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.
@nonVirtualinherited