pub struct SelectableRegionSelectionStatusScope {
pub key: Option<KeyRef>,
/* private fields */
}Expand description
An inherited widget that hosts a SelectableRegion’s selection status notifier.
Fields§
§key: Option<KeyRef>Implementations§
Source§impl SelectableRegionSelectionStatusScope
impl SelectableRegionSelectionStatusScope
Sourcepub fn new<K>(
notifier: Retained<Handle<SelectableRegionSelectionStatusNotifier>>,
child: impl IntoWidget<K>,
) -> SelectableRegionSelectionStatusScopewhere
K: 'static,
pub fn new<K>(
notifier: Retained<Handle<SelectableRegionSelectionStatusNotifier>>,
child: impl IntoWidget<K>,
) -> SelectableRegionSelectionStatusScopewhere
K: 'static,
Creates the scope; Dart’s private constructor.
Sourcepub fn key(self, key: KeyRef) -> SelectableRegionSelectionStatusScope
pub fn key(self, key: KeyRef) -> SelectableRegionSelectionStatusScope
Dart SelectableRegionSelectionStatusScope(key:).
Sourcepub fn maybe_of(
app: &mut App,
context: AnyElement,
) -> Option<Rc<dyn ValueListenable<SelectableRegionSelectionStatus>>>
pub fn maybe_of( app: &mut App, context: AnyElement, ) -> Option<Rc<dyn ValueListenable<SelectableRegionSelectionStatus>>>
The nearest region’s selection status notifier, or None.
Trait Implementations§
Source§impl InheritedWidget for SelectableRegionSelectionStatusScope
impl InheritedWidget for SelectableRegionSelectionStatusScope
Source§fn update_should_notify(
&self,
old_widget: &SelectableRegionSelectionStatusScope,
) -> bool
fn update_should_notify( &self, old_widget: &SelectableRegionSelectionStatusScope, ) -> bool
Whether the framework should notify widgets that inherit from this widget. Read more
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.Source§fn as_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
fn as_inherited_theme(&self) -> Option<&(dyn InheritedTheme + 'static)>
Dart’s
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.Auto Trait Implementations§
impl !RefUnwindSafe for SelectableRegionSelectionStatusScope
impl !Send for SelectableRegionSelectionStatusScope
impl !Sync for SelectableRegionSelectionStatusScope
impl !UnwindSafe for SelectableRegionSelectionStatusScope
impl Forget for SelectableRegionSelectionStatusScope
impl Freeze for SelectableRegionSelectionStatusScopewhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> SelectableRegionSelectionStatusNotifier>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for SelectableRegionSelectionStatusScope
impl Unpin for SelectableRegionSelectionStatusScope
impl UnsafeUnpin for SelectableRegionSelectionStatusScopewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> SelectableRegionSelectionStatusNotifier>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: 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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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.