Skip to main content

MenuButtonStyleFromBuilder

Struct MenuButtonStyleFromBuilder 

Source
pub struct MenuButtonStyleFromBuilder { /* private fields */ }
Expand description

Dart’s MenuItemButton.styleFrom(..) and SubmenuButton.styleFrom(..) arguments, which both hand to TextButton.styleFrom; build makes the ButtonStyle.

Implementations§

Source§

impl MenuButtonStyleFromBuilder

Source

pub fn foreground_color( self, foreground_color: Color, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(foregroundColor:).

Source

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

Dart MenuItemButton.styleFrom(backgroundColor:).

Source

pub fn disabled_foreground_color( self, disabled_foreground_color: Color, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(disabledForegroundColor:).

Source

pub fn disabled_background_color( self, disabled_background_color: Color, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(disabledBackgroundColor:).

Source

pub fn shadow_color(self, shadow_color: Color) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(shadowColor:).

Source

pub fn surface_tint_color( self, surface_tint_color: Color, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(surfaceTintColor:).

Source

pub fn icon_color(self, icon_color: Color) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(iconColor:).

Source

pub fn icon_size(self, icon_size: f64) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(iconSize:).

Source

pub fn disabled_icon_color( self, disabled_icon_color: Color, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(disabledIconColor:).

Source

pub fn text_style(self, text_style: TextStyle) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(textStyle:).

Source

pub fn overlay_color(self, overlay_color: Color) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(overlayColor:).

Source

pub fn elevation(self, elevation: f64) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(elevation:).

Source

pub fn padding(self, padding: EdgeInsetsGeometry) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(padding:).

Source

pub fn minimum_size(self, minimum_size: Size) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(minimumSize:).

Source

pub fn fixed_size(self, fixed_size: Size) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(fixedSize:).

Source

pub fn maximum_size(self, maximum_size: Size) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(maximumSize:).

Source

pub fn enabled_mouse_cursor( self, enabled_mouse_cursor: MouseCursorRef, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(enabledMouseCursor:).

Source

pub fn disabled_mouse_cursor( self, disabled_mouse_cursor: MouseCursorRef, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(disabledMouseCursor:).

Source

pub fn side(self, side: BorderSide) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(side:).

Source

pub fn visual_density( self, visual_density: VisualDensity, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(visualDensity:).

Source

pub fn tap_target_size( self, tap_target_size: MaterialTapTargetSize, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(tapTargetSize:).

Source

pub fn animation_duration( self, animation_duration: Duration, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(animationDuration:).

Source

pub fn enable_feedback( self, enable_feedback: bool, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(enableFeedback:).

Source

pub fn alignment( self, alignment: AlignmentGeometry, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(alignment:).

Source

pub fn splash_factory( self, splash_factory: InteractiveInkFeatureFactoryRef, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(splashFactory:).

Source

pub fn shape( self, shape: impl Into<OutlinedBorderRef>, ) -> MenuButtonStyleFromBuilder

Dart MenuItemButton.styleFrom(shape:).

Source

pub fn build(self) -> ButtonStyle

The ButtonStyle TextButton.styleFrom makes from these values.

Trait Implementations§

Source§

impl Clone for MenuButtonStyleFromBuilder

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 Default for MenuButtonStyleFromBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for MenuButtonStyleFromBuilder

§

impl !Send for MenuButtonStyleFromBuilder

§

impl !Sync for MenuButtonStyleFromBuilder

§

impl !UnwindSafe for MenuButtonStyleFromBuilder

§

impl Forget for MenuButtonStyleFromBuilder

§

impl Freeze for MenuButtonStyleFromBuilder

§

impl Move for MenuButtonStyleFromBuilder

§

impl Unpin for MenuButtonStyleFromBuilder

§

impl UnsafeUnpin for MenuButtonStyleFromBuilder

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>