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.
- Inheritance
-
- Object
- ExpansionPanel
- ExpansionPanelRadio
Constructors
- ExpansionPanelRadio({required Object value, required ExpansionPanelHeaderBuilder headerBuilder, required Widget body, bool canTapOnHeader = false, Color? backgroundColor})
- 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.
read-onlyinherited
- headerBuilder → ExpansionPanelHeaderBuilder
-
The widget builder that builds the expansion panels' header.
finalinherited
- isExpanded → bool
-
Whether the panel is expanded.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- 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 non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited