pub struct DropdownButtonHideUnderline {
pub key: Option<KeyRef>,
pub child: WidgetRef,
}Expand description
An inherited widget that causes any descendant DropdownButton widgets to not include
their regular underline.
This is used by DataTable to remove the underline from any DropdownButton widgets
placed within material data tables, as required by the Material Design specification.
Fields§
§key: Option<KeyRef>§child: WidgetRefImplementations§
Source§impl DropdownButtonHideUnderline
impl DropdownButtonHideUnderline
Sourcepub fn new<K>(child: impl IntoWidget<K>) -> DropdownButtonHideUnderline
pub fn new<K>(child: impl IntoWidget<K>) -> DropdownButtonHideUnderline
Creates a DropdownButtonHideUnderline. A non-null child must be given.
Sourcepub fn key(self, key: KeyRef) -> DropdownButtonHideUnderline
pub fn key(self, key: KeyRef) -> DropdownButtonHideUnderline
Dart DropdownButtonHideUnderline(key:).
Sourcepub fn at(app: &mut App, context: BuildContext) -> bool
pub fn at(app: &mut App, context: BuildContext) -> bool
Returns whether the underline of DropdownButton widgets should be hidden.
Trait Implementations§
Source§impl Debug for DropdownButtonHideUnderline
impl Debug for DropdownButtonHideUnderline
Source§impl InheritedWidget for DropdownButtonHideUnderline
impl InheritedWidget for DropdownButtonHideUnderline
Source§fn update_should_notify(
&self,
_old_widget: &DropdownButtonHideUnderline,
) -> bool
fn update_should_notify( &self, _old_widget: &DropdownButtonHideUnderline, ) -> bool
Whether the framework should notify widgets that inherit from this widget. Read more
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
Dart’s
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_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
fn as_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
Dart’s
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.Auto Trait Implementations§
impl !RefUnwindSafe for DropdownButtonHideUnderline
impl !Send for DropdownButtonHideUnderline
impl !Sync for DropdownButtonHideUnderline
impl !UnwindSafe for DropdownButtonHideUnderline
impl Forget for DropdownButtonHideUnderline
impl Freeze for DropdownButtonHideUnderline
impl Move for DropdownButtonHideUnderline
impl Unpin for DropdownButtonHideUnderline
impl UnsafeUnpin for DropdownButtonHideUnderlinewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: 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
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<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
The widget as a tree node, made where this is called: its
creation_location.