pub struct RadioListTile<T: Clone + PartialEq + 'static> {Show 41 fields
pub key: Option<KeyRef>,
pub value: T,
pub group_value: Option<T>,
pub on_changed: Option<ValueChanged<Option<T>>>,
pub mouse_cursor: Option<MouseCursorRef>,
pub toggleable: bool,
pub active_color: Option<Color>,
pub fill_color: Option<WidgetStatePropertyRef<Option<Color>>>,
pub material_tap_target_size: Option<MaterialTapTargetSize>,
pub hover_color: Option<Color>,
pub overlay_color: Option<WidgetStatePropertyRef<Option<Color>>>,
pub splash_radius: Option<f64>,
pub title: Option<WidgetRef>,
pub subtitle: Option<WidgetRef>,
pub secondary: Option<WidgetRef>,
pub is_three_line: Option<bool>,
pub dense: Option<bool>,
pub selected: bool,
pub control_affinity: Option<ListTileControlAffinity>,
pub autofocus: bool,
pub content_padding: Option<EdgeInsetsGeometry>,
pub shape: Option<ShapeBorderRef>,
pub tile_color: Option<Color>,
pub selected_tile_color: Option<Color>,
pub visual_density: Option<VisualDensity>,
pub focus_node: Option<FocusNodeRef>,
pub states_controller: Option<Ref<WidgetStatesController>>,
pub on_focus_change: Option<ValueChanged<bool>>,
pub enable_feedback: Option<bool>,
pub horizontal_title_gap: Option<f64>,
pub min_vertical_padding: Option<f64>,
pub min_leading_width: Option<f64>,
pub min_tile_height: Option<f64>,
pub title_alignment: Option<ListTileTitleAlignment>,
pub internal_add_semantic_for_on_tap: bool,
pub use_cupertino_checkmark_style: bool,
pub radio_scale_factor: f64,
pub enabled: Option<bool>,
pub radio_background_color: Option<WidgetStatePropertyRef<Option<Color>>>,
pub radio_side: Option<AnyBorderSide>,
pub radio_inner_radius: Option<WidgetStatePropertyRef<Option<f64>>>,
/* private fields */
}Expand description
A ListTile with a Radio. In other words, a radio button with a label.
The entire list tile is interactive: tapping anywhere in the tile selects the radio button.
This widget typically has a RadioGroup ancestor, which takes in a
RadioGroup::group_value, and the RadioListTile under it with matching
value will be selected.
The title, subtitle,
is_three_line, and dense properties are like
those of the same name on ListTile.
The selected property on this widget is similar to the
ListTile::selected property. The fill_color in the selected state
is used for the selected item’s text color. If it is null, the
active_color is used.
This widget does not coordinate the selected state and the
checked state; to have the list tile appear selected when the
radio button is the selected radio button, set selected to true
when value matches RadioGroup::group_value.
The radio button is shown on the left by default in left-to-right languages
(i.e. the leading edge). This can be changed using
control_affinity. The secondary widget is
placed on the opposite side. This maps to the ListTile::leading and
ListTile::trailing properties of ListTile.
This widget requires a Material widget ancestor in the tree to paint
itself on, which is typically provided by the app’s Scaffold.
The tile_color, and selected_tile_color
are not painted by the RadioListTile itself but by the Material widget ancestor. In
this case, one can wrap a Material widget around the RadioListTile.
§Performance considerations when wrapping RadioListTile with Material
Wrapping a large number of RadioListTiles individually with Materials
is expensive. Consider only wrapping the RadioListTiles that require it
or include a common Material ancestor where possible.
§RadioListTile isn’t exactly what I want
If the way RadioListTile pads and positions its elements isn’t quite what
you’re looking for, you can create custom labeled radio widgets by
combining Radio with other widgets, such as Text, Padding and
InkWell.
See also:
ListTileTheme, which can be used to affect the style of list tiles, including radio list tiles.CheckboxListTile, a similar widget for checkboxes.SwitchListTile, a similar widget for switches.ListTileandRadio, the widgets from which this widget is made.
Fields§
§key: Option<KeyRef>§value: TThe value represented by this radio button.
group_value: Option<T>The currently selected value for this group of radio buttons.
This radio button is considered selected if its value matches the
group_value.
leave this unassigned or null if building this widget under RadioGroup.
This is deprecated, use a RadioGroup ancestor to manage group value instead.
on_changed: Option<ValueChanged<Option<T>>>Called when the user selects this radio button.
The radio button passes value as a parameter to this callback. The
radio button does not actually change state until the parent widget rebuilds the
radio tile with the new group_value.
If null, the radio button will be displayed as disabled.
The provided callback will not be invoked if this radio button is already selected.
The callback provided to on_changed should update the state of
the parent StatefulWidget using the State::set_state method, so that the parent
gets rebuilt.
This is deprecated, use RadioGroup to handle value change instead.
mouse_cursor: Option<MouseCursorRef>The cursor for a mouse pointer when it enters or is hovering over the widget.
If mouse_cursor is a WidgetStateMouseCursor,
WidgetStateProperty::resolve is used for the following WidgetStates:
If null, then the value of RadioThemeData::mouse_cursor is used.
If that is also null, then WidgetStateMouseCursor::clickable is used.
toggleable: boolSet to true if this radio list tile is allowed to be returned to an indeterminate state by selecting it again when selected.
To indicate returning to an indeterminate state, on_changed will
be called with null.
If true, RadioGroup::on_changed is called with value when selected
while RadioGroup::group_value != value, and with null when
selected again while RadioGroup::group_value == value.
If false, RadioGroup::on_changed will be called with value when it
is selected while group_value != value, and
only by selecting another radio button in the group (i.e. changing the value of
RadioGroup::group_value) can this radio list tile be unselected.
The default is false.
active_color: Option<Color>The color to use when this radio button is selected.
Defaults to ColorScheme::secondary of the current Theme.
fill_color: Option<WidgetStatePropertyRef<Option<Color>>>The color that fills the radio button.
Resolves in the following states:
If null, then the value of active_color is used in the selected
state. If that is also null, then the value of RadioThemeData::fill_color is used.
If that is also null, then the default value is used.
material_tap_target_size: Option<MaterialTapTargetSize>Configures the minimum size of the tap target.
Defaults to MaterialTapTargetSize::ShrinkWrap.
hover_color: Option<Color>The color for the radio’s Material when a pointer is hovering over it.
overlay_color: Option<WidgetStatePropertyRef<Option<Color>>>The color for the radio’s Material.
Resolves in the following states:
If null, then the value of active_color with alpha
K_RADIAL_REACTION_ALPHA and hover_color is used in the pressed
and hovered state. If that is also null, the value of SwitchThemeData::overlay_color
is used. If that is also null, then the default value is used in the pressed and
hovered state.
splash_radius: Option<f64>The splash radius of the circular Material ink response.
If null, then the value of RadioThemeData::splash_radius is used. If that
is also null, then K_RADIAL_REACTION_RADIUS is used.
title: Option<WidgetRef>The primary content of the list tile.
Typically a Text widget.
subtitle: Option<WidgetRef>Additional content displayed below the title.
Typically a Text widget.
secondary: Option<WidgetRef>A widget to display on the opposite side of the tile from the radio button.
Typically an Icon widget.
is_three_line: Option<bool>Whether this list tile is intended to display three lines of text.
If null, the value from ListTileThemeData::is_three_line is used.
If that is also null, the value from ThemeData::list_tile_theme is used.
If still null, the default value is false.
dense: Option<bool>Whether this list tile is part of a vertically dense list.
If this property is null then its value is based on ListTileThemeData::dense.
selected: boolWhether to render icons and text in the active_color.
No effort is made to automatically coordinate the selected state
and the checked state. To have the list tile appear selected when
the radio button is the selected radio button, set selected to true
when value matches RadioGroup::group_value.
Normally, this property is left to its default value, false.
control_affinity: Option<ListTileControlAffinity>Where to place the control relative to the text.
autofocus: boolTrue if this widget will be selected as the initial focus when no other node in its scope is currently focused.
content_padding: Option<EdgeInsetsGeometry>Defines the insets surrounding the contents of the tile.
Insets the Radio, title, subtitle, and
secondary widgets in RadioListTile.
When null, EdgeInsets.symmetric(horizontal: 16.0) is used.
shape: Option<ShapeBorderRef>If specified, shape defines the shape of the RadioListTile’s
InkWell border.
tile_color: Option<Color>If specified, defines the background color for RadioListTile when
RadioListTile::selected is false.
selected_tile_color: Option<Color>If non-null, defines the background color when RadioListTile::selected is true.
visual_density: Option<VisualDensity>Defines how compact the list tile’s layout will be.
focus_node: Option<FocusNodeRef>An optional focus node to use as the focus node for this widget.
states_controller: Option<Ref<WidgetStatesController>>Controls the interactive states of the backing ListTile.
on_focus_change: Option<ValueChanged<bool>>Handler called when the focus changes.
Called with true if this widget’s node gains focus, and false if it loses focus.
enable_feedback: Option<bool>Whether detected gestures should provide acoustic and/or haptic feedback.
See also:
Feedbackfor providing platform-specific feedback to certain actions.
horizontal_title_gap: Option<f64>The horizontal gap between the titles and the leading/trailing widgets.
min_vertical_padding: Option<f64>The minimum padding on the top and bottom of the title and subtitle widgets.
min_leading_width: Option<f64>The minimum width allocated for the ListTile::leading widget.
min_tile_height: Option<f64>The minimum height allocated for the ListTile widget.
title_alignment: Option<ListTileTitleAlignment>Defines how ListTile::leading and ListTile::trailing are
vertically aligned relative to the ListTile’s titles
(ListTile::title and ListTile::subtitle).
If this property is null then ListTileThemeData::title_alignment
is used. If that is also null then ListTileTitleAlignment::ThreeLine
is used.
See also:
ListTileTheme::of, which returns the nearestListTileTheme’sListTileThemeData.
internal_add_semantic_for_on_tap: boolWhether to add button:true to the semantics if onTap is provided. This is a temporary flag to help changing the behavior of ListTile onTap semantics.
use_cupertino_checkmark_style: boolWhether to use the checkbox style for the CupertinoRadio control.
Only usable under the RadioListTile::adaptive constructor. If set to
true, on Apple platforms the radio button will appear as an iOS styled
checkmark. Controls the CupertinoRadio through
CupertinoRadio::use_checkmark_style.
Defaults to false. Read through
effective_use_cupertino_checkmark_style.
radio_scale_factor: f64Controls the scaling factor applied to the Radio within the RadioListTile.
Defaults to 1.0.
enabled: Option<bool>Whether this widget is interactable.
If not provided, this widget will be interactable if one of the following is true:
- A
on_changedis provided. - Having a
RadioGroupwith the same type T above this widget.
If this is set to true, one of the above condition must also be true. Otherwise, an assertion error is thrown.
radio_background_color: Option<WidgetStatePropertyRef<Option<Color>>>The color of the background of the radio button, in all WidgetStates.
Resolves in the following states:
If null, then it is transparent in all states.
radio_side: Option<AnyBorderSide>The side for the circular border of the radio button, in all
WidgetStates.
This property can be a BorderSide or a WidgetStateBorderSide to leverage
widget state resolution.
Resolves in the following states:
If null, then it defaults to a border using the fill color.
radio_inner_radius: Option<WidgetStatePropertyRef<Option<f64>>>The radius of the inner circle of the radio button, in all WidgetStates.
Resolves in the following states:
If null, then it defaults to 4.5 in all states.
Implementations§
Source§impl<T: Clone + PartialEq + 'static> RadioListTile<T>
impl<T: Clone + PartialEq + 'static> RadioListTile<T>
Sourcepub fn new(value: T) -> RadioListTile<T>
pub fn new(value: T) -> RadioListTile<T>
Creates a combination of a list tile and a radio button.
This widget typically has a RadioGroup ancestor, which takes in a
RadioGroup::group_value, and the RadioListTile under it with matching
value will be selected.
value must be provided
Sourcepub fn adaptive(value: T) -> RadioListTile<T>
pub fn adaptive(value: T) -> RadioListTile<T>
Creates a combination of a list tile and a platform adaptive radio.
The checkbox uses Radio::adaptive to show a CupertinoRadio for
iOS platforms, or Radio for all others.
All other properties are the same as RadioListTile.
Sourcepub fn key(self, key: KeyRef) -> RadioListTile<T>
pub fn key(self, key: KeyRef) -> RadioListTile<T>
Dart RadioListTile(key:).
Sourcepub fn group_value(self, group_value: T) -> RadioListTile<T>
👎Deprecated: Use a RadioGroup ancestor to manage group value instead. This feature was deprecated after v3.32.0-0.0.pre.
pub fn group_value(self, group_value: T) -> RadioListTile<T>
Use a RadioGroup ancestor to manage group value instead. This feature was deprecated after v3.32.0-0.0.pre.
Dart RadioListTile(groupValue:).
Sourcepub fn on_changed(self, on_changed: ValueChanged<Option<T>>) -> RadioListTile<T>
👎Deprecated: Use RadioGroup to handle value change instead. This feature was deprecated after v3.32.0-0.0.pre.
pub fn on_changed(self, on_changed: ValueChanged<Option<T>>) -> RadioListTile<T>
Use RadioGroup to handle value change instead. This feature was deprecated after v3.32.0-0.0.pre.
Dart RadioListTile(onChanged:).
Sourcepub fn mouse_cursor(
self,
mouse_cursor: impl Into<MouseCursorRef>,
) -> RadioListTile<T>
pub fn mouse_cursor( self, mouse_cursor: impl Into<MouseCursorRef>, ) -> RadioListTile<T>
Dart RadioListTile(mouseCursor:).
Sourcepub fn active_color(self, active_color: impl Into<Color>) -> RadioListTile<T>
pub fn active_color(self, active_color: impl Into<Color>) -> RadioListTile<T>
Dart RadioListTile(activeColor:).
Sourcepub fn fill_color(
self,
fill_color: impl Into<WidgetStatePropertyRef<Option<Color>>>,
) -> RadioListTile<T>
pub fn fill_color( self, fill_color: impl Into<WidgetStatePropertyRef<Option<Color>>>, ) -> RadioListTile<T>
Dart RadioListTile(fillColor:).
Sourcepub fn hover_color(self, hover_color: impl Into<Color>) -> RadioListTile<T>
pub fn hover_color(self, hover_color: impl Into<Color>) -> RadioListTile<T>
Dart RadioListTile(hoverColor:).
Sourcepub fn overlay_color(
self,
overlay_color: impl Into<WidgetStatePropertyRef<Option<Color>>>,
) -> RadioListTile<T>
pub fn overlay_color( self, overlay_color: impl Into<WidgetStatePropertyRef<Option<Color>>>, ) -> RadioListTile<T>
Dart RadioListTile(overlayColor:).
Sourcepub fn splash_radius(self, splash_radius: impl Into<f64>) -> RadioListTile<T>
pub fn splash_radius(self, splash_radius: impl Into<f64>) -> RadioListTile<T>
Dart RadioListTile(splashRadius:).
Sourcepub fn material_tap_target_size(
self,
material_tap_target_size: impl Into<MaterialTapTargetSize>,
) -> RadioListTile<T>
pub fn material_tap_target_size( self, material_tap_target_size: impl Into<MaterialTapTargetSize>, ) -> RadioListTile<T>
Dart RadioListTile(materialTapTargetSize:).
Sourcepub fn is_three_line(self, is_three_line: impl Into<bool>) -> RadioListTile<T>
pub fn is_three_line(self, is_three_line: impl Into<bool>) -> RadioListTile<T>
Dart RadioListTile(isThreeLine:).
Sourcepub fn dense(self, dense: impl Into<bool>) -> RadioListTile<T>
pub fn dense(self, dense: impl Into<bool>) -> RadioListTile<T>
Dart RadioListTile(dense:).
Sourcepub fn control_affinity(
self,
control_affinity: impl Into<ListTileControlAffinity>,
) -> RadioListTile<T>
pub fn control_affinity( self, control_affinity: impl Into<ListTileControlAffinity>, ) -> RadioListTile<T>
Dart RadioListTile(controlAffinity:).
Sourcepub fn content_padding(
self,
content_padding: impl Into<EdgeInsetsGeometry>,
) -> RadioListTile<T>
pub fn content_padding( self, content_padding: impl Into<EdgeInsetsGeometry>, ) -> RadioListTile<T>
Dart RadioListTile(contentPadding:).
Sourcepub fn shape(self, shape: impl Into<ShapeBorderRef>) -> RadioListTile<T>
pub fn shape(self, shape: impl Into<ShapeBorderRef>) -> RadioListTile<T>
Dart RadioListTile(shape:).
Sourcepub fn tile_color(self, tile_color: impl Into<Color>) -> RadioListTile<T>
pub fn tile_color(self, tile_color: impl Into<Color>) -> RadioListTile<T>
Dart RadioListTile(tileColor:).
Sourcepub fn selected_tile_color(
self,
selected_tile_color: impl Into<Color>,
) -> RadioListTile<T>
pub fn selected_tile_color( self, selected_tile_color: impl Into<Color>, ) -> RadioListTile<T>
Dart RadioListTile(selectedTileColor:).
Sourcepub fn visual_density(
self,
visual_density: impl Into<VisualDensity>,
) -> RadioListTile<T>
pub fn visual_density( self, visual_density: impl Into<VisualDensity>, ) -> RadioListTile<T>
Dart RadioListTile(visualDensity:).
Sourcepub fn focus_node(self, focus_node: impl Into<FocusNodeRef>) -> RadioListTile<T>
pub fn focus_node(self, focus_node: impl Into<FocusNodeRef>) -> RadioListTile<T>
Dart RadioListTile(focusNode:).
Sourcepub fn states_controller(
self,
states_controller: impl Into<Ref<WidgetStatesController>>,
) -> RadioListTile<T>
pub fn states_controller( self, states_controller: impl Into<Ref<WidgetStatesController>>, ) -> RadioListTile<T>
Dart RadioListTile(statesController:).
Sourcepub fn on_focus_change(
self,
on_focus_change: impl Into<ValueChanged<bool>>,
) -> RadioListTile<T>
pub fn on_focus_change( self, on_focus_change: impl Into<ValueChanged<bool>>, ) -> RadioListTile<T>
Dart RadioListTile(onFocusChange:).
Sourcepub fn enable_feedback(
self,
enable_feedback: impl Into<bool>,
) -> RadioListTile<T>
pub fn enable_feedback( self, enable_feedback: impl Into<bool>, ) -> RadioListTile<T>
Dart RadioListTile(enableFeedback:).
Sourcepub fn horizontal_title_gap(
self,
horizontal_title_gap: impl Into<f64>,
) -> RadioListTile<T>
pub fn horizontal_title_gap( self, horizontal_title_gap: impl Into<f64>, ) -> RadioListTile<T>
Dart RadioListTile(horizontalTitleGap:).
Sourcepub fn min_vertical_padding(
self,
min_vertical_padding: impl Into<f64>,
) -> RadioListTile<T>
pub fn min_vertical_padding( self, min_vertical_padding: impl Into<f64>, ) -> RadioListTile<T>
Dart RadioListTile(minVerticalPadding:).
Sourcepub fn min_leading_width(
self,
min_leading_width: impl Into<f64>,
) -> RadioListTile<T>
pub fn min_leading_width( self, min_leading_width: impl Into<f64>, ) -> RadioListTile<T>
Dart RadioListTile(minLeadingWidth:).
Sourcepub fn min_tile_height(
self,
min_tile_height: impl Into<f64>,
) -> RadioListTile<T>
pub fn min_tile_height( self, min_tile_height: impl Into<f64>, ) -> RadioListTile<T>
Dart RadioListTile(minTileHeight:).
Sourcepub fn title_alignment(
self,
title_alignment: impl Into<ListTileTitleAlignment>,
) -> RadioListTile<T>
pub fn title_alignment( self, title_alignment: impl Into<ListTileTitleAlignment>, ) -> RadioListTile<T>
Dart RadioListTile(titleAlignment:).
Sourcepub fn enabled(self, enabled: impl Into<bool>) -> RadioListTile<T>
pub fn enabled(self, enabled: impl Into<bool>) -> RadioListTile<T>
Dart RadioListTile(enabled:).
Sourcepub fn radio_background_color(
self,
radio_background_color: impl Into<WidgetStatePropertyRef<Option<Color>>>,
) -> RadioListTile<T>
pub fn radio_background_color( self, radio_background_color: impl Into<WidgetStatePropertyRef<Option<Color>>>, ) -> RadioListTile<T>
Dart RadioListTile(radioBackgroundColor:).
Sourcepub fn radio_side(
self,
radio_side: impl Into<AnyBorderSide>,
) -> RadioListTile<T>
pub fn radio_side( self, radio_side: impl Into<AnyBorderSide>, ) -> RadioListTile<T>
Dart RadioListTile(radioSide:).
Sourcepub fn radio_inner_radius(
self,
radio_inner_radius: impl Into<WidgetStatePropertyRef<Option<f64>>>,
) -> RadioListTile<T>
pub fn radio_inner_radius( self, radio_inner_radius: impl Into<WidgetStatePropertyRef<Option<f64>>>, ) -> RadioListTile<T>
Dart RadioListTile(radioInnerRadius:).
Sourcepub fn title<K>(self, title: impl IntoWidget<K>) -> RadioListTile<T>
pub fn title<K>(self, title: impl IntoWidget<K>) -> RadioListTile<T>
Dart RadioListTile(title:).
Sourcepub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> RadioListTile<T>
pub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> RadioListTile<T>
Dart RadioListTile(subtitle:).
Sourcepub fn secondary<K>(self, secondary: impl IntoWidget<K>) -> RadioListTile<T>
pub fn secondary<K>(self, secondary: impl IntoWidget<K>) -> RadioListTile<T>
Dart RadioListTile(secondary:).
Sourcepub fn toggleable(self, toggleable: bool) -> RadioListTile<T>
pub fn toggleable(self, toggleable: bool) -> RadioListTile<T>
Dart RadioListTile(toggleable:).
Sourcepub fn selected(self, selected: bool) -> RadioListTile<T>
pub fn selected(self, selected: bool) -> RadioListTile<T>
Dart RadioListTile(selected:).
Sourcepub fn autofocus(self, autofocus: bool) -> RadioListTile<T>
pub fn autofocus(self, autofocus: bool) -> RadioListTile<T>
Dart RadioListTile(autofocus:).
Sourcepub fn internal_add_semantic_for_on_tap(
self,
internal_add_semantic_for_on_tap: bool,
) -> RadioListTile<T>
pub fn internal_add_semantic_for_on_tap( self, internal_add_semantic_for_on_tap: bool, ) -> RadioListTile<T>
Dart RadioListTile(internalAddSemanticForOnTap:).
Sourcepub fn radio_scale_factor(self, radio_scale_factor: f64) -> RadioListTile<T>
pub fn radio_scale_factor(self, radio_scale_factor: f64) -> RadioListTile<T>
Dart RadioListTile(radioScaleFactor:).
Sourcepub fn use_cupertino_checkmark_style(
self,
use_cupertino_checkmark_style: bool,
) -> RadioListTile<T>
pub fn use_cupertino_checkmark_style( self, use_cupertino_checkmark_style: bool, ) -> RadioListTile<T>
Dart RadioListTile.adaptive(useCupertinoCheckmarkStyle:).
Sourcepub fn effective_use_cupertino_checkmark_style(&self) -> bool
pub fn effective_use_cupertino_checkmark_style(&self) -> bool
Dart’s useCupertinoCheckmarkStyle field: what
use_cupertino_checkmark_style was given, and
false for a tile made with RadioListTile::new, whose constructor sets it so.
Sourcepub fn checked(&self) -> bool
👎Deprecated: Use RadioGroup.groupValue to find which radio is checked. This feature was deprecated after v3.32.0-0.0.pre.
pub fn checked(&self) -> bool
Use RadioGroup.groupValue to find which radio is checked. This feature was deprecated after v3.32.0-0.0.pre.
Whether this radio button is checked.
To control this value, set value and
group_value appropriately.
Trait Implementations§
Source§impl<T: Clone + PartialEq + 'static> StatefulWidget for RadioListTile<T>
impl<T: Clone + PartialEq + 'static> StatefulWidget for RadioListTile<T>
Source§type State = RadioListTileState<T>
type State = RadioListTileState<T>
Source§fn create_state(&self) -> RadioListTileState<T>
fn create_state(&self) -> RadioListTileState<T>
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl<T> !RefUnwindSafe for RadioListTile<T>
impl<T> !Send for RadioListTile<T>
impl<T> !Sync for RadioListTile<T>
impl<T> !UnwindSafe for RadioListTile<T>
impl<T> Forget for RadioListTile<T>
impl<T> Freeze for RadioListTile<T>where
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
T: Freeze,
*const RcInner<dyn Fn(&mut App, Option<T>)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, Option<T>)>>: Freeze,
*const RcInner<dyn MouseCursor> is !null: Freeze,
PhantomData<RcInner<dyn MouseCursor>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
*const RcInner<dyn ShapeBorder> is !null: Freeze,
PhantomData<RcInner<dyn ShapeBorder>>: Freeze,
NonZero<u32>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
PhantomData<fn() -> WidgetStatesController>: Freeze,
*const RcInner<dyn Fn(&mut App, bool)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, bool)>>: Freeze,
*const RcInner<dyn BorderSideExtension> is !null: Freeze,
PhantomData<RcInner<dyn BorderSideExtension>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<f64>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<f64>>>>: Freeze,
impl<T> Move for RadioListTile<T>
impl<T> Unpin for RadioListTile<T>where
T: Unpin,
Rc<dyn Key>: Unpin,
Rc<dyn Fn(&mut App, Option<T>)>: Unpin,
Rc<dyn MouseCursor>: Unpin,
Rc<dyn WidgetStateProperty<Option<Color>>>: Unpin,
Rc<dyn Widget>: Unpin,
Rc<dyn ShapeBorder>: Unpin,
NonZero<u32>: Unpin,
&'static FocusNodeVTable: Unpin,
Rc<Keep>: Unpin,
Rc<dyn Fn(&mut App, bool)>: Unpin,
Rc<dyn BorderSideExtension>: Unpin,
Rc<dyn WidgetStateProperty<Option<f64>>>: Unpin,
impl<T> UnsafeUnpin for RadioListTile<T>where
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
T: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, Option<T>)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, Option<T>)>>: UnsafeUnpin,
*const RcInner<dyn MouseCursor> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
*const RcInner<dyn ShapeBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ShapeBorder>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
PhantomData<fn() -> WidgetStatesController>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, bool)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, bool)>>: UnsafeUnpin,
*const RcInner<dyn BorderSideExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BorderSideExtension>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<f64>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<f64>>>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.