A bridge from a RenderObject to an Element tree.

The given container is the RenderObject that the Element tree should be inserted into. It must be a RenderObject that implements the RenderObjectWithChildMixin protocol. The type argument T is the kind of RenderObject that the container expects as its child.

Used by runApp to bootstrap applications.

Inheritance

Constructors

RenderObjectToWidgetAdapter({Widget child, RenderObjectWithChildMixin<T> container, String debugShortDescription })

Creates a bridge from a RenderObject to an Element tree.

Properties

child Widget

The widget below this widget in the tree.

read-only
container RenderObjectWithChildMixin<T>

The RenderObject that is the parent of the Element created by this widget.

read-only
debugShortDescription String

A short description of this widget used by debugging aids.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
key Key

Controls how one widget replaces another widget in the tree.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

attachToRenderTree(BuildOwner owner, [ RenderObjectToWidgetElement<T> element ]) RenderObjectToWidgetElement<T>

Inflate this widget and actually set the resulting RenderObject as the child of container.

createElement() RenderObjectToWidgetElement<T>

RenderObjectWidgets always inflate to a RenderObjectElement subclass.

createRenderObject(BuildContext context) RenderObjectWithChildMixin<T>

Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget.

toStringShort() String

A short, textual description of this widget.

updateRenderObject(BuildContext context, RenderObject renderObject) → void

Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject.

debugFillDescription(List<String> description) → void

Add additional information to the given description for use by toString.

inherited
didUnmountRenderObject(RenderObject renderObject) → void

A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited