DiagramControllerInternals class final
What platform adapters, such as the Flutter canvas, need beyond the controller's verbs: publications, gesture previews, grouped history, the command groups behind the verbs and platform lifecycle hooks.
Properties
- arrangement → DiagramArrangementCommands
-
no setter
- canvas → Object?
-
The mounted canvas, if any.
no setter
- clipboard → DiagramClipboardCommands
-
no setter
- committedPublication → DiagramPublication
-
Last accepted content and geometry, excluding every preview.
no setter
- connectionRule → DiagramConnectionRule?
-
no setter
- connections → DiagramConnectionCommands
-
no setter
- connectorCreationStyle → ConnectorStyle
-
The stroke appearance of new connectors.
no setter
- connectorLabels → DiagramConnectorLabelCommands
-
no setter
- creation → DiagramCreationCommands
-
no setter
- creationDefaults ↔ DiagramCreationDefaults
-
Styles the mounted canvas gives new content, below explicit choices
from
DiagramController.setShapeCreationStyle.getter/setter pair - creationRule → DiagramCreationRule?
-
Read-only rule evaluation; retained callbacks respect disposal.
no setter
- grouping → DiagramGroupingCommands
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- interaction → DiagramInteractionController
-
Semantic gesture and text-editing state shared by this controller's
canvas mounts.
no setter
- interactionStart → DiagramEditorState?
-
Immutable baseline used by all previews in the current gesture.
no setter
- lastGroupFitVisits → ({int candidates, int children, int groups})
-
Traversal of the latest changed-document group-fitting phase.
no setter
- objects → DiagramObjectCommands
-
no setter
- options → DiagramOptions
-
The installed options and canvas bounds.
no setter
- paths → DiagramPathCommands
-
no setter
- publication → DiagramPublication
-
The live publication, including this participant's preview.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → DiagramStoryCommands
-
no setter
Methods
-
attachCanvas(
Object canvas) → void - Claims the controller for one mounted canvas.
-
cancelOwnedEdits(
) → void - Cancels the interaction and value edit this controller started.
-
commandGuard(
) → bool Function() - A guard for delayed input, such as a file picker's result: false once another operation has started, even one since cancelled, or the document changed. Call immediately before performing.
-
commitInteraction(
) → EditResult -
detachCanvas(
Object canvas) → void -
evaluatePreparation<
T> (T prepare()) → T -
Runs
prepareas a read-only candidate evaluation. -
hasCanonicalId(
String id) → bool -
installPlatformBackends(
{required DiagramTextLayoutEngine textLayout, required DiagramOutput output}) → void - Supplies missing platform services without replacing configuration or grammar. An explicit host backend always wins. Text shaping republishes only derived geometry; document identity and history are unchanged.
-
motionFor(
ResolvedScene scene) → Map< String, Motion> -
The Motion the commit shown by
scenerequested for each element it moved, by id; empty when that commit requested none. A canvas animates those elements from the geometry it last showed. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifier(
DiagramStateAspect aspect) → Listenable -
Notifies after each publication that changes
aspectof this controller's state. Platform adapters repaint and rebuild from these; application UI observes the controller's getters with MobX instead. -
previewInteraction(
DiagramTransaction transaction) → EditResult -
Previews
transactionon the active interaction; each preview derives from the gesture baseline to avoid numerical drift. -
sceneWithFrames(
Map< String, DiagramRect> frames) → ResolvedScene -
This actor's scene with the framed elements
framesnames placed at those frames, for a canvas to present an animation frame. Only those elements, their contents and the connectors attached to them are resolved again; nothing is published and the document is unchanged. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited