pub struct ExpansionTileTheme {
pub key: Option<KeyRef>,
pub data: ExpansionTileThemeData,
pub child: WidgetRef,
}Expand description
Overrides the default ExpansionTileTheme of its ExpansionTile descendants.
See also:
ExpansionTileThemeData, which is used to configure this theme.ThemeData::expansion_tile_theme, which can be used to override the defaultExpansionTileThemeforExpansionTiles below the overallTheme.
Fields§
§key: Option<KeyRef>§data: ExpansionTileThemeDataSpecifies color, alignment, and text style values for
descendant ExpansionTile widgets.
child: WidgetRefImplementations§
Source§impl ExpansionTileTheme
impl ExpansionTileTheme
Sourcepub fn new<K>(
data: ExpansionTileThemeData,
child: impl IntoWidget<K>,
) -> ExpansionTileTheme
pub fn new<K>( data: ExpansionTileThemeData, child: impl IntoWidget<K>, ) -> ExpansionTileTheme
Sourcepub fn key(self, key: KeyRef) -> ExpansionTileTheme
pub fn key(self, key: KeyRef) -> ExpansionTileTheme
Dart ExpansionTileTheme(key:).
Sourcepub fn of(app: &mut App, context: BuildContext) -> ExpansionTileThemeData
pub fn of(app: &mut App, context: BuildContext) -> ExpansionTileThemeData
Retrieves the ExpansionTileThemeData from the closest ancestor ExpansionTileTheme.
If there is no enclosing ExpansionTileTheme widget, then
ThemeData::expansion_tile_theme is used.
Typical usage is as follows:
let theme = ExpansionTileTheme::of(app, context);Trait Implementations§
Source§impl Debug for ExpansionTileTheme
impl Debug for ExpansionTileTheme
Source§impl InheritedTheme for ExpansionTileTheme
impl InheritedTheme for ExpansionTileTheme
Source§impl InheritedWidget for ExpansionTileTheme
impl InheritedWidget for ExpansionTileTheme
Source§fn update_should_notify(&self, old_widget: &ExpansionTileTheme) -> bool
fn update_should_notify(&self, old_widget: &ExpansionTileTheme) -> bool
Whether the framework should notify widgets that inherit from this widget. Read more
Source§fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
Dart’s
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.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.Auto Trait Implementations§
impl !RefUnwindSafe for ExpansionTileTheme
impl !Send for ExpansionTileTheme
impl !Sync for ExpansionTileTheme
impl !UnwindSafe for ExpansionTileTheme
impl Forget for ExpansionTileTheme
impl Freeze for ExpansionTileThemewhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn ShapeBorder> is !null: Freeze,
PhantomData<RcInner<dyn ShapeBorder>>: Freeze,
*const RcInner<dyn Curve> is !null: Freeze,
PhantomData<RcInner<dyn Curve>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for ExpansionTileTheme
impl Unpin for ExpansionTileTheme
impl UnsafeUnpin for ExpansionTileThemewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn ShapeBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ShapeBorder>>: UnsafeUnpin,
*const RcInner<dyn Curve> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Curve>>: 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.