WindowDelegate<T extends SceneElement> class abstract

A delegate for Window to provide visual representations for SceneElements.

See also:

Mixed in types
Implementers

Constructors

WindowDelegate()
Const constructor for subclasses.
const

Properties

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.
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
paintOrder(T element) int
Returns a number which is used to determine the order in which multiple SceneElements inside of a Window are painted.
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.
shouldRebuild(WindowDelegate<T> oldDelegate) bool
Returns whether the SceneElements of the Window should be rebuild after the oldDelegate has been replaced with this instance.
showElement(T element) bool
Returns whether element should be shown in the Window.
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.
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.

Operators

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