ExpansionPanelRadio class Null safety

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.



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


backgroundColor Color?
Defines the background color of the panel. [...]
final, inherited
body Widget
The body of the expansion panel that's displayed below the header. [...]
final, inherited
canTapOnHeader bool
Whether tapping on the panel's header will expand/collapse it. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headerBuilder ExpansionPanelHeaderBuilder
The widget builder that builds the expansion panels' header.
final, inherited
isExpanded bool
Whether the panel is expanded. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value Object
The value that uniquely identifies a radio panel so that the currently selected radio panel can be identified.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]