pub struct PullRefreshBuilder { /* private fields */ }Expand description
Configuration handle returned by pull_refresh.
Implementations§
Source§impl PullRefreshBuilder
impl PullRefreshBuilder
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn on_refresh<F>(&self, value: F) -> Self
pub fn on_refresh<F>(&self, value: F) -> Self
Configure on_refresh before this component executes.
Configure on_refresh before this component executes.
Sourcepub fn on_refresh_optional(&self, value: Option<Callback>) -> Self
pub fn on_refresh_optional(&self, value: Option<Callback>) -> Self
Configure on_refresh before this component executes.
Sourcepub fn refreshing(&self, value: bool) -> Self
pub fn refreshing(&self, value: bool) -> Self
Configure refreshing before this component executes.
Sourcepub fn refreshing_optional(&self, value: Option<bool>) -> Self
pub fn refreshing_optional(&self, value: Option<bool>) -> Self
Configure refreshing before this component executes.
Sourcepub fn enabled_optional(&self, value: Option<bool>) -> Self
pub fn enabled_optional(&self, value: Option<bool>) -> Self
Configure enabled before this component executes.
Sourcepub fn refresh_threshold(&self, value: Dp) -> Self
pub fn refresh_threshold(&self, value: Dp) -> Self
Configure refresh_threshold before this component executes.
Sourcepub fn refresh_threshold_optional(&self, value: Option<Dp>) -> Self
pub fn refresh_threshold_optional(&self, value: Option<Dp>) -> Self
Configure refresh_threshold before this component executes.
Sourcepub fn refreshing_offset(&self, value: Dp) -> Self
pub fn refreshing_offset(&self, value: Dp) -> Self
Configure refreshing_offset before this component executes.
Sourcepub fn refreshing_offset_optional(&self, value: Option<Dp>) -> Self
pub fn refreshing_offset_optional(&self, value: Option<Dp>) -> Self
Configure refreshing_offset before this component executes.
Sourcepub fn indicator_size(&self, value: Dp) -> Self
pub fn indicator_size(&self, value: Dp) -> Self
Configure indicator_size before this component executes.
Sourcepub fn indicator_size_optional(&self, value: Option<Dp>) -> Self
pub fn indicator_size_optional(&self, value: Option<Dp>) -> Self
Configure indicator_size before this component executes.
Sourcepub fn indicator_background_color(&self, value: Color) -> Self
pub fn indicator_background_color(&self, value: Color) -> Self
Configure indicator_background_color before this component executes.
Sourcepub fn indicator_background_color_optional(&self, value: Option<Color>) -> Self
pub fn indicator_background_color_optional(&self, value: Option<Color>) -> Self
Configure indicator_background_color before this component executes.
Sourcepub fn indicator_content_color(&self, value: Color) -> Self
pub fn indicator_content_color(&self, value: Color) -> Self
Configure indicator_content_color before this component executes.
Sourcepub fn indicator_content_color_optional(&self, value: Option<Color>) -> Self
pub fn indicator_content_color_optional(&self, value: Option<Color>) -> Self
Configure indicator_content_color before this component executes.
Sourcepub fn indicator_track_color(&self, value: Color) -> Self
pub fn indicator_track_color(&self, value: Color) -> Self
Configure indicator_track_color before this component executes.
Sourcepub fn indicator_track_color_optional(&self, value: Option<Color>) -> Self
pub fn indicator_track_color_optional(&self, value: Option<Color>) -> Self
Configure indicator_track_color before this component executes.
Sourcepub fn indicator_stroke_width(&self, value: Dp) -> Self
pub fn indicator_stroke_width(&self, value: Dp) -> Self
Configure indicator_stroke_width before this component executes.
Sourcepub fn indicator_stroke_width_optional(&self, value: Option<Dp>) -> Self
pub fn indicator_stroke_width_optional(&self, value: Option<Dp>) -> Self
Configure indicator_stroke_width before this component executes.
Sourcepub fn indicator_elevation(&self, value: Dp) -> Self
pub fn indicator_elevation(&self, value: Dp) -> Self
Configure indicator_elevation before this component executes.
Sourcepub fn indicator_elevation_optional(&self, value: Option<Dp>) -> Self
pub fn indicator_elevation_optional(&self, value: Option<Dp>) -> Self
Configure indicator_elevation before this component executes.
Sourcepub fn controller(&self, value: State<PullRefreshController>) -> Self
pub fn controller(&self, value: State<PullRefreshController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<PullRefreshController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<PullRefreshController>>, ) -> Self
Configure controller before this component executes.
Sourcepub fn indicator<F, Output>(&self, value: F) -> Self
pub fn indicator<F, Output>(&self, value: F) -> Self
Configure indicator before this component executes.
Configure indicator before this component executes.
Sourcepub fn indicator_optional(&self, value: Option<RenderSlot>) -> Self
pub fn indicator_optional(&self, value: Option<RenderSlot>) -> Self
Configure indicator before this component executes.
Sourcepub fn child<F, Output>(&self, value: F) -> Self
pub fn child<F, Output>(&self, value: F) -> Self
Configure child before this component executes.
Configure child before this component executes.
Sourcepub fn child_optional(&self, value: Option<RenderSlot>) -> Self
pub fn child_optional(&self, value: Option<RenderSlot>) -> Self
Configure child before this component executes.
Auto Trait Implementations§
impl Freeze for PullRefreshBuilder
impl RefUnwindSafe for PullRefreshBuilder
impl Send for PullRefreshBuilder
impl Sync for PullRefreshBuilder
impl Unpin for PullRefreshBuilder
impl UnsafeUnpin for PullRefreshBuilder
impl UnwindSafe for PullRefreshBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.