pub trait SegmentedButtonThemeDataGetters {
// Required method
fn segmented_button_theme_data(&self) -> &SegmentedButtonThemeData;
// Provided methods
fn style(&self, app: &mut App) -> Option<ButtonStyle> { ... }
fn selected_icon(&self, app: &mut App) -> Option<WidgetRef> { ... }
fn copy_with(&self, app: &mut App) -> SegmentedButtonThemeData { ... }
}Expand description
Dart’s getters of SegmentedButtonThemeData: the theme data answers with its fields,
and a defaults subclass (Dart’s _SegmentedButtonDefaultsM3(context)) computes the ones
it overrides when they are read.
Required Methods§
The fields Dart’s constructor sets: the struct itself, or the super(...)
arguments a defaults struct keeps.
Provided Methods§
Sourcefn style(&self, app: &mut App) -> Option<ButtonStyle>
fn style(&self, app: &mut App) -> Option<ButtonStyle>
Dart’s style getter.
Sourcefn selected_icon(&self, app: &mut App) -> Option<WidgetRef>
fn selected_icon(&self, app: &mut App) -> Option<WidgetRef>
Dart’s selected_icon getter.
Sourcefn copy_with(&self, app: &mut App) -> SegmentedButtonThemeData
fn copy_with(&self, app: &mut App) -> SegmentedButtonThemeData
Dart’s copyWith() with no arguments: a plain value holding what every getter
answers, for the caller’s setters to change.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".