Skip to main content

PageViewBuilder

Struct PageViewBuilder 

Source
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

Source

pub fn item_count(self, item_count: i32) -> PageViewBuilder

Dart itemCount:.

Source

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.

Source

pub fn build(self) -> PageView

The PageView this builder describes, whose other arguments its setters take.

Trait Implementations§

Source§

impl IntoWidget<StatefulKind> for PageViewBuilder

Source§

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 PageViewBuilder
where *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
where Rc<dyn Fn(&mut App, AnyElement, i32) -> Option<Rc<dyn Widget>>>: Unpin, Rc<dyn Fn(&Rc<dyn Widget>, i32) -> Option<i32>>: Unpin, Rc<dyn Fn(&KeyRef) -> Option<i32>>: Unpin,

§

impl UnsafeUnpin for PageViewBuilder
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>