pub struct DividerTheme {
pub key: Option<KeyRef>,
pub data: DividerThemeData,
pub child: WidgetRef,
}Expand description
An inherited widget that defines the configuration for
Dividers, VerticalDividers, dividers between ListTiles, and
dividers between rows in DataTables in this widget’s subtree.
Fields§
§key: Option<KeyRef>§data: DividerThemeDataThe properties for descendant Divider widgets.
child: WidgetRefImplementations§
Source§impl DividerTheme
impl DividerTheme
Sourcepub fn new<K>(data: DividerThemeData, child: impl IntoWidget<K>) -> DividerTheme
pub fn new<K>(data: DividerThemeData, child: impl IntoWidget<K>) -> DividerTheme
Creates a divider theme that controls the configurations for
Dividers and VerticalDividers in its widget subtree.
Sourcepub fn key(self, key: KeyRef) -> DividerTheme
pub fn key(self, key: KeyRef) -> DividerTheme
Dart DividerTheme(key:).
Sourcepub fn of(app: &mut App, context: BuildContext) -> DividerThemeData
pub fn of(app: &mut App, context: BuildContext) -> DividerThemeData
The data from the closest instance of this class that encloses the given context.
If there is no enclosing DividerTheme widget, then ThemeData::divider_theme
is used.
Typical usage is as follows:
let theme = DividerTheme::of(app, context);Trait Implementations§
Source§impl Debug for DividerTheme
impl Debug for DividerTheme
Source§impl InheritedTheme for DividerTheme
impl InheritedTheme for DividerTheme
Source§impl InheritedWidget for DividerTheme
impl InheritedWidget for DividerTheme
Source§fn update_should_notify(&self, old_widget: &DividerTheme) -> bool
fn update_should_notify(&self, old_widget: &DividerTheme) -> 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 DividerTheme
impl !Send for DividerTheme
impl !Sync for DividerTheme
impl !UnwindSafe for DividerTheme
impl Forget for DividerTheme
impl Freeze for DividerTheme
impl Move for DividerTheme
impl Unpin for DividerTheme
impl UnsafeUnpin for DividerThemewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: 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.