Skip to main content

ExpansionPanelRadio

Struct ExpansionPanelRadio 

Source
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: ExpansionPanel

Dart’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

Source

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.

Source

pub fn can_tap_on_header(self, can_tap_on_header: bool) -> Self

Dart ExpansionPanelRadio(canTapOnHeader:).

Source

pub fn background_color(self, background_color: Color) -> Self

Dart ExpansionPanelRadio(backgroundColor:).

Source

pub fn splash_color(self, splash_color: Color) -> Self

Dart ExpansionPanelRadio(splashColor:).

Source

pub fn highlight_color(self, highlight_color: Color) -> Self

Dart ExpansionPanelRadio(highlightColor:).

Trait Implementations§

Source§

impl Clone for ExpansionPanelRadio

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExpansionPanelRadio

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for ExpansionPanelRadio

§

impl !Send for ExpansionPanelRadio

§

impl !Sync for ExpansionPanelRadio

§

impl !UnwindSafe for ExpansionPanelRadio

§

impl Forget for ExpansionPanelRadio

§

impl Freeze for ExpansionPanelRadio
where *const RcInner<dyn Fn(&mut App, AnyElement, bool) -> Rc<dyn Widget>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, bool) -> Rc<dyn Widget>>>: Freeze, *const RcInner<dyn Widget> is !null: Freeze, PhantomData<RcInner<dyn Widget>>: Freeze, *const RcInner<dyn AnyEq> is !null: Freeze, PhantomData<RcInner<dyn AnyEq>>: Freeze,

§

impl Move for ExpansionPanelRadio

§

impl Unpin for ExpansionPanelRadio
where Rc<dyn Fn(&mut App, AnyElement, bool) -> Rc<dyn Widget>>: Unpin, Rc<dyn Widget>: Unpin, Rc<dyn AnyEq>: Unpin,

§

impl UnsafeUnpin for ExpansionPanelRadio
where *const RcInner<dyn Fn(&mut App, AnyElement, bool) -> Rc<dyn Widget>> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, bool) -> Rc<dyn Widget>>>: UnsafeUnpin, *const RcInner<dyn Widget> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Widget>>: UnsafeUnpin, *const RcInner<dyn AnyEq> is !null: UnsafeUnpin, PhantomData<RcInner<dyn AnyEq>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>