DataItem<T> class

This is a single item in the chart. label is displayed right below the bar, with value determining the height ratio of the bar.

source is used to have a handle on the original data item that was received from a repository. For instance, if the data item has extra fields besides just label/title and value, then you can use source as a handle on the original data item. You can then manipulate the source in the onSelect callback of the graph.

Constructors

DataItem({String label, double value, T source})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
label String
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
source → T
final
value double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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