pub struct ScrollNotificationData {
pub metrics: Rc<dyn ScrollMetrics>,
pub context: Option<BuildContext>,
}Expand description
The fields of Dart’s ScrollNotification base class.
Fields§
§metrics: Rc<dyn ScrollMetrics>A description of a Scrollable’s contents, useful for modeling the state
of its viewport.
context: Option<BuildContext>The build context of the widget that fired this notification.
This can be used to find the scrollable’s render objects to determine the size of the viewport, for instance.
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollNotificationData
impl !Send for ScrollNotificationData
impl !Sync for ScrollNotificationData
impl !UnwindSafe for ScrollNotificationData
impl Forget for ScrollNotificationData
impl Freeze for ScrollNotificationDatawhere
*const RcInner<dyn ScrollMetrics> is !null: Freeze,
PhantomData<RcInner<dyn ScrollMetrics>>: Freeze,
NonZero<u32>: Freeze,
&'static ElementVTable: Freeze,
impl Move for ScrollNotificationData
impl Unpin for ScrollNotificationData
impl UnsafeUnpin for ScrollNotificationDatawhere
*const RcInner<dyn ScrollMetrics> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollMetrics>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static ElementVTable: 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