pub struct ScrollControllerData { /* private fields */ }Expand description
The fields of Dart’s ScrollController, held under the field scroll_controller.
Implementations§
Source§impl ScrollControllerData
impl ScrollControllerData
Sourcepub fn new(
initial_scroll_offset: f64,
keep_scroll_offset: bool,
debug_label: Option<String>,
on_attach: Option<ScrollControllerCallback>,
on_detach: Option<ScrollControllerCallback>,
) -> ScrollControllerData
pub fn new( initial_scroll_offset: f64, keep_scroll_offset: bool, debug_label: Option<String>, on_attach: Option<ScrollControllerCallback>, on_detach: Option<ScrollControllerCallback>, ) -> ScrollControllerData
The bag of a controller with no attached positions.
Auto Trait Implementations§
impl !RefUnwindSafe for ScrollControllerData
impl !Send for ScrollControllerData
impl !Sync for ScrollControllerData
impl !UnwindSafe for ScrollControllerData
impl Forget for ScrollControllerData
impl Freeze for ScrollControllerDatawhere
*const RcInner<dyn Fn(&mut App, AnyScrollPosition)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyScrollPosition)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Retained<AnyScrollPosition>>: Freeze,
impl Move for ScrollControllerData
impl Unpin for ScrollControllerData
impl UnsafeUnpin for ScrollControllerDatawhere
*const RcInner<dyn Fn(&mut App, AnyScrollPosition)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyScrollPosition)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Retained<AnyScrollPosition>>: 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