RenderExpansionTile class
Render object that paints an expandable tile with a header and children.
- Inheritance
-
- Object
- RenderObject
- RenderBox
- RenderExpansionTile
- Mixed-in types
Constructors
- RenderExpansionTile({required String title, required bool expanded, required bool focused, required Color expandedColor, required Color collapsedColor, required Color iconColor})
- Creates a RenderExpansionTile with the given title and visual configuration.
Properties
-
children
→ List<
RenderBox> -
An unmodifiable view of the current children.
no setterinherited
- collapsedColor ↔ Color
-
The color of the title when collapsed.
getter/setter pair
- expanded ↔ bool
-
Whether the tile is currently expanded.
getter/setter pair
- expandedColor ↔ Color
-
The color of the title when expanded.
getter/setter pair
- focused ↔ bool
-
Whether the tile currently has keyboard focus.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSize → bool
-
Whether this render object has been laid out and has a size.
no setterinherited
- height → int
-
The height of this render box in terminal rows.
no setterinherited
- iconColor ↔ Color
-
The color of the expand/collapse arrow icon.
getter/setter pair
- isRelayoutBoundary → bool
-
Whether this render object acts as a relayout boundary.
no setterinherited
- needsPaint → bool
-
Whether this render object needs to be repainted.
no setterinherited
- parent ↔ RenderObject?
-
The parent of this render object, or
nullif this is the root.getter/setter pairinherited - parentData ↔ ParentData?
-
Optional data associated with this render object by its parent.
getter/setter pairinherited
- 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 pairinherited
- title ↔ String
-
The title text displayed in the header.
getter/setter pair
- width → int
-
The width of this render box in terminal columns.
no setterinherited
Methods
-
add(
RenderBox child) → void -
Adds a
childto the end of the children list.inherited -
clear(
) → void -
Removes all children from this render object.
inherited
-
clearNeedsPaint(
) → void -
Clears the needs-paint flag, indicating painting is up to date.
inherited
-
layout(
Constraints constraints, {bool parentUsesSize = true}) → void -
Performs layout on this render object using the given
constraints.inherited -
markNeedsLayout(
) → void -
Marks this render object as needing layout and paint.
inherited
-
markNeedsPaint(
) → void -
Marks this render object as needing to be repainted.
inherited
-
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.override -
performLayout(
Constraints constraints) → void -
Called to perform the actual layout computation for this render object.
override
-
remove(
RenderBox child) → void -
Removes a
childfrom the children list.inherited -
setRelayoutBoundary(
bool value) → void -
Marks this render object as a relayout boundary or not.
inherited
-
setupParentData(
RenderObject child) → void -
Initializes parentData for the given
childif not already set.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited