pub enum DropdownMenuCloseBehavior {
All,
SelfOnly,
None,
}Expand description
Defines the behavior for closing the dropdown menu when an item is selected.
Variants§
All
Closes all open menus in the widget tree.
SelfOnly
Closes only the current dropdown menu: Dart’s self, a Rust keyword.
None
Does not close any menus.
Trait Implementations§
Source§impl Clone for DropdownMenuCloseBehavior
impl Clone for DropdownMenuCloseBehavior
impl Copy for DropdownMenuCloseBehavior
Source§impl Debug for DropdownMenuCloseBehavior
impl Debug for DropdownMenuCloseBehavior
impl Eq for DropdownMenuCloseBehavior
Source§impl Hash for DropdownMenuCloseBehavior
impl Hash for DropdownMenuCloseBehavior
impl StructuralPartialEq for DropdownMenuCloseBehavior
Auto Trait Implementations§
impl Forget for DropdownMenuCloseBehavior
impl Freeze for DropdownMenuCloseBehavior
impl Move for DropdownMenuCloseBehavior
impl RefUnwindSafe for DropdownMenuCloseBehavior
impl Send for DropdownMenuCloseBehavior
impl Sync for DropdownMenuCloseBehavior
impl Unpin for DropdownMenuCloseBehavior
impl UnsafeUnpin for DropdownMenuCloseBehavior
impl UnwindSafe for DropdownMenuCloseBehavior
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.