ChartWorkbenchGroupController class

Coordinates presentation preferences across a group of chart workbenches.

Supply this controller explicitly to each BravenChartWorkbench or expose it through a ChartWorkbenchScope. The controller is caller-owned and must be disposed by the caller.

Inheritance

Constructors

ChartWorkbenchGroupController({ChartDisplayMode initialDisplayMode = ChartDisplayMode.chart, bool showModeSwitcher = true})
Creates a shared Workbench presentation controller.

Properties

availableDisplayModes Set<ChartDisplayMode>
Modes supported by every currently attached Workbench.
no setter
displayMode ChartDisplayMode
Display mode requested for every attached Workbench.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showModeSwitcher bool
Whether attached Workbenches may show their package-owned mode selector.
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setDisplayMode(ChartDisplayMode mode) ChartArtifactResult<ChartDisplayMode>
Requests one shared display mode.
setShowModeSwitcher(bool value) → void
Shows or hides the package-owned selector in every attached Workbench.
toString() String
A string representation of this object.
inherited

Operators

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