FusionChartsController class
Use FusionChartsController to subscribe/unsubscribe to chart events and to call FusionCharts APIs.
Calls made before the chart is ready are queued and replayed in order, so a
controller may be driven from initState without a readiness check.
- Inheritance
-
- Object
- ChangeNotifier
- FusionChartsController
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isReady → bool
-
True once the hosting page and bridge are installed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEvents(
List< String> events) → void - Registers chart event listeners.
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
attachBridge(
FusionChartsBridge bridge) → void - Attached by the FusionCharts widget. Not part of the supported API.
-
detachBridge(
) → void - Detached by the FusionCharts widget. Not part of the supported API.
-
dispose(
) → void -
Discards any resources used by the object.
override
-
executeScript(
String js) → void - Executes raw JavaScript in the chart page.
-
exportChart(
String format) → void -
Requests an export. The bytes arrive on the widget's
onExport. -
feedData(
Object? data) → void - Pushes a real-time data increment to the chart.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeEvents(
List< String> events) → void - Removes chart event listeners previously registered.
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setData(
Map< String, dynamic> dataSource) → void - Replaces the chart's data source without recreating the chart.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited