ChartHost class abstract

What a chart needs from whatever shows it on screen: the render object of the widget layer implements it and assigns itself to Chart.host.

On Android a chart is a View and gets these from the view system. A chart built in code without a host (for example to export an image with Chart.toImage) still works: redraw requests do nothing, posted jobs run at once and animations end at once.

An implementation must set Chart.host back to null when it detaches or is disposed. The chart sends every redraw request to its current host, so requests made after that, including those of jobs that were posted earlier and run late, do nothing.

Implementers

Constructors

ChartHost()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vsync → TickerProvider?
The ticker provider that drives animations of the chart while it is shown, or null.
no setter

Methods

disableScroll() → void
Keeps the current gesture with the chart, so that an enclosing scrollable does not take it over, ViewParent.requestDisallowInterceptTouchEvent(true).
enableScroll() → void
Lets an enclosing scrollable take over gestures again, ViewParent.requestDisallowInterceptTouchEvent(false).
markNeedsPaint() → void
Schedules a repaint of the chart, View.invalidate().
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postFrame(void job()) → void
Runs job after the current frame, View.post(Runnable). The job may call markNeedsPaint.
toString() → String
A string representation of this object.
inherited

Operators

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