ExpansionPanelRadio class

An expansion panel that allows for radio-like functionality. This means that at any given time, at most, one ExpansionPanelRadio can remain expanded.

A unique identifier value must be assigned to each panel. This identifier allows the ExpansionPanelList to determine which ExpansionPanelRadio instance should be expanded.

See ExpansionPanelList.radio for a sample implementation.

Inheritance

Constructors

ExpansionPanelRadio({required Object value, required ExpansionPanelHeaderBuilder headerBuilder, required Widget body, bool canTapOnHeader = false, Color? backgroundColor, Color? splashColor, Color? highlightColor})
An expansion panel that allows for radio functionality.

Properties

backgroundColor Color?
Defines the background color of the panel.
finalinherited
body Widget
The body of the expansion panel that's displayed below the header.
finalinherited
canTapOnHeader bool
Whether tapping on the panel's header will expand/collapse it.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headerBuilder ExpansionPanelHeaderBuilder
The widget builder that builds the expansion panels' header.
finalinherited
highlightColor Color?
Defines the highlight color of the panel if canTapOnHeader is true, or the highlight color of the expand/collapse IconButton if canTapOnHeader is false.
finalinherited
isExpanded bool
Whether the panel is expanded.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
Defines the splash color of the panel if canTapOnHeader is true, or the splash color of the expand/collapse IconButton if canTapOnHeader is false.
finalinherited
value Object
The value that uniquely identifies a radio panel so that the currently selected radio panel can be identified.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited