RenderObject class abstract
The base class for all render objects in the rendering tree.
Render objects perform layout and painting to produce visual output.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRelayoutBoundary → bool
-
Whether this render object acts as a relayout boundary.
no setter
- needsPaint → bool
-
Whether this render object needs to be repainted.
no setter
- parent ↔ RenderObject?
-
The parent of this render object, or
nullif this is the root.getter/setter pair - parentData ↔ ParentData?
-
Optional data associated with this render object by its parent.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size ↔ Size?
-
The current size of this render object after layout.
getter/setter pair
Methods
-
clearNeedsPaint(
) → void - Clears the needs-paint flag, indicating painting is up to date.
-
layout(
Constraints constraints, {bool parentUsesSize = true}) → void -
Performs layout on this render object using the given
constraints. -
markNeedsLayout(
) → void - Marks this render object as needing layout and paint.
-
markNeedsPaint(
) → void - Marks this render object as needing to be repainted.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
PaintingContext context, Offset offset) → void -
Paints this render object into the given
contextatoffset. -
performLayout(
Constraints constraints) → void - Called to perform the actual layout computation for this render object.
-
setRelayoutBoundary(
bool value) → void - Marks this render object as a relayout boundary or not.
-
setupParentData(
RenderObject child) → void -
Initializes parentData for the given
childif not already set. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited