DiagramWidgetScene class final
Native content slots interleaved with the scene's ordinary paint bands. The viewport owns grid, global overlays and canonical canvas input.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DiagramWidgetScene
Constructors
-
DiagramWidgetScene({required DiagramScenePainter renderer, required ShapeWidgetRegistry registry, required DiagramController store, required Listenable repaint, required bool readOnly, required ValueChanged<
int> onPointerOwned, Listenable? structure, required ValueChanged<int> onPointerReleased, required ValueChanged<bool> onFocusChanged, bool blocksWidgetPointer(DiagramPoint world)?, bool onBackgroundStart(String ownerId, int pointer, Offset global)?, void onBackgroundUpdate(int pointer, Offset global)?, void onBackgroundEnd(int pointer, Offset global)?, ValueChanged<int> ? onBackgroundCancel, void onBackgroundTap(String ownerId, int pointer, Offset global)?, VoidCallback? onReturnToCanvas, Key? key}) -
const
Properties
- blocksWidgetPointer → bool Function(DiagramPoint world)?
-
The canvas can reserve handle/tool/pan targets before a control receives it.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onBackgroundCancel
→ ValueChanged<
int> ? -
final
- onBackgroundEnd → void Function(int pointer, Offset global)?
-
final
- onBackgroundStart → bool Function(String ownerId, int pointer, Offset global)?
-
final
- onBackgroundTap → void Function(String ownerId, int pointer, Offset global)?
-
final
- onBackgroundUpdate → void Function(int pointer, Offset global)?
-
final
-
onFocusChanged
→ ValueChanged<
bool> -
final
-
onPointerOwned
→ ValueChanged<
int> -
final
-
onPointerReleased
→ ValueChanged<
int> -
final
- onReturnToCanvas → VoidCallback?
-
final
- readOnly → bool
-
final
- registry → ShapeWidgetRegistry
-
final
- renderer → DiagramScenePainter
-
final
- repaint → Listenable
-
Paint inputs of the content bands (camera, previews, caches).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → DiagramController
-
final
- structure → Listenable?
-
Inputs that change which elements and bands exist (scene, previews that
substitute elements). When given, repaint only repaints the bands and
repositions native slots; the band structure is rebuilt on structure
and when the camera leaves the region composed last, not per frame.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DiagramWidgetScene> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited