ExpansionPanel class

A material expansion panel. It has a header and a body and can be either expanded or collapsed. The body of the panel is only visible when it is expanded.

Expansion panels are only intended to be used as children for ExpansionPanelList.

See also:

Implementers

Constructors

ExpansionPanel({@required ExpansionPanelHeaderBuilder headerBuilder, @required Widget body, bool isExpanded: false })
Creates an expansion panel to be used as a child for ExpansionPanelList. [...]

Properties

body Widget
The body of the expansion panel that's displayed below the header. [...]
final
headerBuilder ExpansionPanelHeaderBuilder
The widget builder that builds the expansion panels' header.
final
isExpanded bool
Whether the panel is expanded. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited