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:

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.

read-only
headerBuilder ExpansionPanelHeaderBuilder

The widget builder that builds the expansion panels' header.

read-only
isExpanded bool

Whether the panel is expanded.

read-only
hashCode int

Get a hash code for this object.

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

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