Skip to main content

SegmentedButtonThemeDataGetters

Trait SegmentedButtonThemeDataGetters 

Source
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§

Source

fn segmented_button_theme_data(&self) -> &SegmentedButtonThemeData

The fields Dart’s constructor sets: the struct itself, or the super(...) arguments a defaults struct keeps.

Provided Methods§

Source

fn style(&self, app: &mut App) -> Option<ButtonStyle>

Dart’s style getter.

Source

fn selected_icon(&self, app: &mut App) -> Option<WidgetRef>

Dart’s selected_icon getter.

Source

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".

Implementors§