pub struct MenuBarThemeData { /* private fields */ }Expand description
A data class that MenuBarTheme uses to define the visual properties of
MenuBar widgets.
This class defines the visual properties of MenuBar widgets themselves,
but not their submenus. Those properties are defined by MenuThemeData or
MenuButtonThemeData instead.
Descendant widgets obtain the current MenuBarThemeData object using
MenuBarTheme::of.
Typically, a MenuBarThemeData is specified as part of the overall Theme
with ThemeData::menu_bar_theme. Otherwise, MenuTheme can be used to
configure its own widget subtree.
All MenuBarThemeData properties are null by default. If any of these
properties are null, the menu bar will provide its own defaults.
Dart’s MenuBarThemeData extends MenuThemeData: it holds the MenuThemeData it
derefs to, whose submenu_icon its constructor never sets.
See also:
MenuThemeData, which describes the theme for the submenus of aMenuBar.MenuButtonThemeData, which describes the theme for theMenuItemButtons in a menu.ThemeData, which describes the overall theme for the application.
Implementations§
Source§impl MenuBarThemeData
impl MenuBarThemeData
Sourcepub fn new() -> MenuBarThemeData
pub fn new() -> MenuBarThemeData
Creates a const set of properties used to configure MenuTheme.
Sourcepub fn style(self, style: MenuStyle) -> MenuBarThemeData
pub fn style(self, style: MenuStyle) -> MenuBarThemeData
Dart MenuBarThemeData(style:).
Sourcepub fn lerp(
a: Option<&MenuBarThemeData>,
b: Option<&MenuBarThemeData>,
t: f64,
) -> Option<MenuBarThemeData>
pub fn lerp( a: Option<&MenuBarThemeData>, b: Option<&MenuBarThemeData>, t: f64, ) -> Option<MenuBarThemeData>
Linearly interpolate between two MenuBar themes.
Trait Implementations§
Source§impl Clone for MenuBarThemeData
impl Clone for MenuBarThemeData
Source§impl Debug for MenuBarThemeData
impl Debug for MenuBarThemeData
Source§impl Default for MenuBarThemeData
impl Default for MenuBarThemeData
Source§impl Deref for MenuBarThemeData
impl Deref for MenuBarThemeData
Source§type Target = MenuThemeData
type Target = MenuThemeData
Source§fn deref(&self) -> &MenuThemeData
fn deref(&self) -> &MenuThemeData
Source§impl Diagnosticable for MenuBarThemeData
impl Diagnosticable for MenuBarThemeData
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).