Inheritance
System.Object
Element
public abstract class Element : DiagnosticableTree, BuildContext
Constructors
Declaration
protected Element(Widget widget)
Parameters
Type |
Name |
Description |
Widget |
widget |
|
Fields
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Properties
Declaration
public int depth { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public bool dirty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public BuildOwner owner { get; }
Property Value
Implements
Declaration
public virtual RenderObject renderObject { get; }
Property Value
Declaration
public Size size { get; }
Property Value
Implements
Declaration
public object slot { get; }
Property Value
Type |
Description |
System.Object |
|
Declaration
public Widget widget { get; }
Property Value
Implements
Methods
Declaration
public virtual void activate()
Declaration
public virtual InheritedElement ancestorInheritedElementForWidgetOfExactType(Type targetType)
Parameters
Type |
Name |
Description |
System.Type |
targetType |
|
Returns
Implements
Declaration
public virtual RenderObject ancestorRenderObjectOfType(TypeMatcher matcher)
Parameters
Returns
Implements
Declaration
public virtual State ancestorStateOfType(TypeMatcher matcher)
Parameters
Returns
Implements
Declaration
public virtual Widget ancestorWidgetOfExactType(Type targetType)
Parameters
Type |
Name |
Description |
System.Type |
targetType |
|
Returns
Implements
Declaration
public virtual void attachRenderObject(object newSlot)
Parameters
Type |
Name |
Description |
System.Object |
newSlot |
|
Declaration
public virtual void deactivate()
Declaration
protected void deactivateChild(Element child)
Parameters
Type |
Name |
Description |
Element |
child |
|
Declaration
public virtual void debugDeactivated()
Declaration
public override List<DiagnosticsNode> debugDescribeChildren()
Returns
Overrides
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public string debugGetCreatorChain(int limit)
Parameters
Type |
Name |
Description |
System.Int32 |
limit |
|
Returns
Type |
Description |
System.String |
|
Declaration
public List<Element> debugGetDiagnosticChain()
Returns
Type |
Description |
System.Collections.Generic.List<Element> |
|
Declaration
public virtual void debugVisitOnstageChildren(ElementVisitor visitor)
Parameters
Declaration
public virtual void detachRenderObject()
Declaration
public virtual void didChangeDependencies()
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public RenderObject findRenderObject()
Returns
Implements
Declaration
protected abstract void forgetChild(Element child)
Parameters
Type |
Name |
Description |
Element |
child |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
protected Element inflateWidget(Widget newWidget, object newSlot)
Parameters
Type |
Name |
Description |
Widget |
newWidget |
|
System.Object |
newSlot |
|
Returns
Declaration
public virtual InheritedWidget inheritFromElement(InheritedElement ancestor, object aspect = null)
Parameters
Returns
Implements
Declaration
public virtual InheritedWidget inheritFromWidgetOfExactType(Type targetType, object aspect = null)
Parameters
Type |
Name |
Description |
System.Type |
targetType |
|
System.Object |
aspect |
|
Returns
Implements
Declaration
public void markNeedsBuild()
Declaration
public virtual void mount(Element parent, object newSlot)
Parameters
Type |
Name |
Description |
Element |
parent |
|
System.Object |
newSlot |
|
Declaration
protected abstract void performRebuild()
Declaration
Declaration
public virtual State rootAncestorStateOfType(TypeMatcher matcher)
Parameters
Returns
Implements
Declaration
public override string toStringShort()
Returns
Type |
Description |
System.String |
|
Overrides
Declaration
public virtual void unmount()
Declaration
public virtual void update(Widget newWidget)
Parameters
Type |
Name |
Description |
Widget |
newWidget |
|
Declaration
protected virtual Element updateChild(Element child, Widget newWidget, object newSlot)
Parameters
Type |
Name |
Description |
Element |
child |
|
Widget |
newWidget |
|
System.Object |
newSlot |
|
Returns
Declaration
protected void updateSlotForChild(Element child, object newSlot)
Parameters
Type |
Name |
Description |
Element |
child |
|
System.Object |
newSlot |
|
Declaration
public virtual void visitAncestorElements(ElementVisitorBool visitor)
Parameters
Implements
Declaration
public void visitChildElements(ElementVisitor visitor)
Parameters
Implements
Declaration
public virtual void visitChildren(ElementVisitor visitor)
Parameters