pub struct PageViewBuilder { /* private fields */ }Expand description
Dart’s PageView.builder(..) arguments that go to its delegate; the value converts to the
PageView.
Implementations§
Source§impl PageViewBuilder
impl PageViewBuilder
Sourcepub fn item_count(self, item_count: i32) -> PageViewBuilder
pub fn item_count(self, item_count: i32) -> PageViewBuilder
Dart itemCount:.
Sourcepub fn find_child_index_callback(
self,
value: ChildIndexGetter,
) -> PageViewBuilder
pub fn find_child_index_callback( self, value: ChildIndexGetter, ) -> PageViewBuilder
Dart findChildIndexCallback:.
It corresponds to SliverChildBuilderDelegate::find_child_index_callback. If None, a
child widget may not map to its existing render object when the order of children
returned from the children builder changes. This may result in state-loss. This
callback needs to be implemented if the order of the children may change at a later
time.
Trait Implementations§
Source§impl IntoWidget<StatefulKind> for PageViewBuilder
impl IntoWidget<StatefulKind> for PageViewBuilder
Source§fn into_widget(self) -> WidgetRef
fn into_widget(self) -> WidgetRef
The widget as a tree node, made where this is called: its
creation_location.Auto Trait Implementations§
impl !RefUnwindSafe for PageViewBuilder
impl !Send for PageViewBuilder
impl !Sync for PageViewBuilder
impl !UnwindSafe for PageViewBuilder
impl Forget for PageViewBuilder
impl Freeze for PageViewBuilderwhere
*const RcInner<dyn Fn(&mut App, AnyElement, i32) -> Option<Rc<dyn Widget>>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, i32) -> Option<Rc<dyn Widget>>>>: Freeze,
*const RcInner<dyn Fn(&Rc<dyn Widget>, i32) -> Option<i32>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&Rc<dyn Widget>, i32) -> Option<i32>>>: Freeze,
*const RcInner<dyn Fn(&KeyRef) -> Option<i32>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&KeyRef) -> Option<i32>>>: Freeze,
impl Move for PageViewBuilder
impl Unpin for PageViewBuilder
impl UnsafeUnpin for PageViewBuilderwhere
*const RcInner<dyn Fn(&mut App, AnyElement, i32) -> Option<Rc<dyn Widget>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, i32) -> Option<Rc<dyn Widget>>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&Rc<dyn Widget>, i32) -> Option<i32>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&Rc<dyn Widget>, i32) -> Option<i32>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&KeyRef) -> Option<i32>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&KeyRef) -> Option<i32>>>: 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