GraphController<T> class

The GraphController holds data to be drawn on the graph. It also notifies listeners on selection change. At least one group of data is required to draw the graph.



GraphController([List<DataGroup<T>> groups])


groups List<DataGroup<T>>
Data groups to be plotted. The graph should contain at least one group.
read / write
hashCode int
The hash code for this object.
hasListeners bool
Whether any listeners are currently registered.
maxValue DataItem
read / write
runtimeType Type
A representation of the runtime type of the object.
value DataSelection<T>
The current value stored in this notifier.
read / writeinherited


addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
getBelongingGroup(DataItem data) DataGroup
Returns the group in which data belongs to
initialize() → void
This should be called right before it is passed to a SimpleBarGraph. It makes a default selection to the last item in the combined groups data and sets the maximum value of all data combined.
isActive(DataItem dataItem) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
notifyListeners() → void
Call all the registered listeners.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
select(DataItem dataItem) → void
toString() String
A string representation of this object.


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