StatefulWindowDelegate<T extends SceneElement> class abstract

A WindowDelegate which can maintain it's own state and request rebuilds based on this state.

Inheritance

Constructors

StatefulWindowDelegate()

Properties

elements List<T>
The SceneElements currently in the Scene above the Window.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, T element) Widget
Returns a Widget which gives element a visual representation in the Window.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
didAddElement(T element) → void
Callback which is invoked when a new element has been added to elements.
didChangeElement(T element) → void
Callback which is invoked when an element in elements has changed.
didRemoveElement(T element) → void
Callback which is invoked when an element has been removed from elements.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintOrder(T element) int
Returns a number which is used to determine the order in which multiple SceneElements inside of a Window are painted.
inherited
rebuildElement(T element) → void
Notifies Window that the visual representation of element needs to be be rebuild.
sceneElementAnchor(T element) AlignmentGeometry
Returns an anchor that is positioned relatively to element and with which windowElementAnchor will be aligned to position the Widget, representing element, in the Window.
inherited
shouldRebuild(WindowDelegate<T> oldDelegate) bool
Returns whether the SceneElements of the Window should be rebuild after the oldDelegate has been replaced with this instance.
inherited
showElement(T element) bool
Returns whether element should be shown in the Window.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
useElementSize(T element) bool
Whether the Widget returned from build should be forced to have the same size as element.
inherited
windowElementAnchor(T element) AlignmentGeometry
Returns an anchor that is positioned relatively to the Widget representing element and which will be aligned with sceneElementAnchor to position the Widget in the Window.
inherited

Operators

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