pub struct CarouselViewTheme {
pub key: Option<KeyRef>,
pub data: CarouselViewThemeData,
pub child: WidgetRef,
}Expand description
An inherited widget that defines the configuration for CarouselViews
in this widget’s subtree.
Values specified here are used for CarouselView properties that
are not given an explicit non-null value.
Fields§
§key: Option<KeyRef>§data: CarouselViewThemeDataThe properties used for all descendant CarouselView widgets.
child: WidgetRefImplementations§
Source§impl CarouselViewTheme
impl CarouselViewTheme
Sourcepub fn new<K>(
data: CarouselViewThemeData,
child: impl IntoWidget<K>,
) -> CarouselViewTheme
pub fn new<K>( data: CarouselViewThemeData, child: impl IntoWidget<K>, ) -> CarouselViewTheme
Creates a theme that controls the configurations for CarouselView
in its widget subtree.
Sourcepub fn key(self, key: KeyRef) -> CarouselViewTheme
pub fn key(self, key: KeyRef) -> CarouselViewTheme
Dart CarouselViewTheme(key:).
Sourcepub fn of(app: &mut App, context: BuildContext) -> CarouselViewThemeData
pub fn of(app: &mut App, context: BuildContext) -> CarouselViewThemeData
Returns the configuration data from the closest
CarouselViewTheme ancestor. If there is no ancestor, it returns
ThemeData::carousel_view_theme.
Typical usage is as follows:
let theme = CarouselViewTheme::of(app, context);Trait Implementations§
Source§impl Debug for CarouselViewTheme
impl Debug for CarouselViewTheme
Source§impl InheritedTheme for CarouselViewTheme
impl InheritedTheme for CarouselViewTheme
Source§impl InheritedWidget for CarouselViewTheme
impl InheritedWidget for CarouselViewTheme
Source§fn update_should_notify(&self, old_widget: &CarouselViewTheme) -> bool
fn update_should_notify(&self, old_widget: &CarouselViewTheme) -> 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 CarouselViewTheme
impl !Send for CarouselViewTheme
impl !Sync for CarouselViewTheme
impl !UnwindSafe for CarouselViewTheme
impl Forget for CarouselViewTheme
impl Freeze for CarouselViewThemewhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn OutlinedBorder> is !null: Freeze,
PhantomData<RcInner<dyn OutlinedBorder>>: Freeze,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for CarouselViewTheme
impl Unpin for CarouselViewTheme
impl UnsafeUnpin for CarouselViewThemewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn OutlinedBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn OutlinedBorder>>: UnsafeUnpin,
*const RcInner<dyn WidgetStateProperty<Option<Color>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: 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.