pub struct ExpansionPanelRadio {
pub panel: ExpansionPanel,
pub value: Rc<dyn AnyEq>,
}Expand description
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.
Fields§
§panel: ExpansionPanelDart’s extends ExpansionPanel: the fields it inherits.
value: Rc<dyn AnyEq>The value that uniquely identifies a radio panel so that the currently selected radio panel can be identified.
Implementations§
Source§impl ExpansionPanelRadio
impl ExpansionPanelRadio
Sourcepub fn new<K>(
value: impl AnyEq,
header_builder: ExpansionPanelHeaderBuilder,
body: impl IntoWidget<K>,
) -> Self
pub fn new<K>( value: impl AnyEq, header_builder: ExpansionPanelHeaderBuilder, body: impl IntoWidget<K>, ) -> Self
An expansion panel that allows for radio functionality; Dart’s optional named arguments are the setters.
Sourcepub fn can_tap_on_header(self, can_tap_on_header: bool) -> Self
pub fn can_tap_on_header(self, can_tap_on_header: bool) -> Self
Dart ExpansionPanelRadio(canTapOnHeader:).
Sourcepub fn background_color(self, background_color: Color) -> Self
pub fn background_color(self, background_color: Color) -> Self
Dart ExpansionPanelRadio(backgroundColor:).
Sourcepub fn splash_color(self, splash_color: Color) -> Self
pub fn splash_color(self, splash_color: Color) -> Self
Dart ExpansionPanelRadio(splashColor:).
Sourcepub fn highlight_color(self, highlight_color: Color) -> Self
pub fn highlight_color(self, highlight_color: Color) -> Self
Dart ExpansionPanelRadio(highlightColor:).