pub enum ListTileControlAffinity {
Leading,
Trailing,
Platform,
}Expand description
Where to place the control in widgets that use ListTile to position a
control next to a label.
See also:
CheckboxListTile, which combines aListTilewith aCheckbox.RadioListTile, which combines aListTilewith aRadiobutton.SwitchListTile, which combines aListTilewith aSwitch.ExpansionTile, which combines aListTilewith a button that expands or collapses the tile to reveal or hide the children.
Variants§
Leading
Position the control on the leading edge, and the secondary widget, if any, on the trailing edge.
Trailing
Position the control on the trailing edge, and the secondary widget, if any, on the leading edge.
Platform
Position the control relative to the text in the fashion that is typical for the current platform, and place the secondary widget on the opposite side.
Trait Implementations§
Source§impl Clone for ListTileControlAffinity
impl Clone for ListTileControlAffinity
impl Copy for ListTileControlAffinity
Source§impl Debug for ListTileControlAffinity
impl Debug for ListTileControlAffinity
impl Eq for ListTileControlAffinity
Source§impl Hash for ListTileControlAffinity
impl Hash for ListTileControlAffinity
Source§impl PartialEq for ListTileControlAffinity
impl PartialEq for ListTileControlAffinity
impl StructuralPartialEq for ListTileControlAffinity
Auto Trait Implementations§
impl Forget for ListTileControlAffinity
impl Freeze for ListTileControlAffinity
impl Move for ListTileControlAffinity
impl RefUnwindSafe for ListTileControlAffinity
impl Send for ListTileControlAffinity
impl Sync for ListTileControlAffinity
impl Unpin for ListTileControlAffinity
impl UnsafeUnpin for ListTileControlAffinity
impl UnwindSafe for ListTileControlAffinity
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.