pub struct WrappedScrollBehavior { /* private fields */ }Expand description
The ScrollBehavior that ScrollBehaviorRef::copy_with returns; Dart’s
_WrappedScrollBehavior.
Implementations§
Source§impl WrappedScrollBehavior
impl WrappedScrollBehavior
Sourcepub fn new(delegate: ScrollBehaviorRef) -> WrappedScrollBehavior
pub fn new(delegate: ScrollBehaviorRef) -> WrappedScrollBehavior
Wraps delegate with Dart’s copyWith defaults: both decorations on and every other
override unset.
Sourcepub fn scrollbars(self, scrollbars: bool) -> WrappedScrollBehavior
pub fn scrollbars(self, scrollbars: bool) -> WrappedScrollBehavior
Dart copyWith(scrollbars:).
Sourcepub fn overscroll(self, overscroll: bool) -> WrappedScrollBehavior
pub fn overscroll(self, overscroll: bool) -> WrappedScrollBehavior
Dart copyWith(overscroll:).
Sourcepub fn drag_devices(
self,
drag_devices: HashSet<PointerDeviceKind>,
) -> WrappedScrollBehavior
pub fn drag_devices( self, drag_devices: HashSet<PointerDeviceKind>, ) -> WrappedScrollBehavior
Dart copyWith(dragDevices:).
Sourcepub fn multitouch_drag_strategy(
self,
multitouch_drag_strategy: MultitouchDragStrategy,
) -> WrappedScrollBehavior
pub fn multitouch_drag_strategy( self, multitouch_drag_strategy: MultitouchDragStrategy, ) -> WrappedScrollBehavior
Dart copyWith(multitouchDragStrategy:).
Sourcepub fn pointer_axis_modifiers(
self,
pointer_axis_modifiers: HashSet<LogicalKeyboardKey>,
) -> WrappedScrollBehavior
pub fn pointer_axis_modifiers( self, pointer_axis_modifiers: HashSet<LogicalKeyboardKey>, ) -> WrappedScrollBehavior
Dart copyWith(pointerAxisModifiers:).
Sourcepub fn physics(self, physics: ScrollPhysicsRef) -> WrappedScrollBehavior
pub fn physics(self, physics: ScrollPhysicsRef) -> WrappedScrollBehavior
Dart copyWith(physics:).
Sourcepub fn platform(self, platform: TargetPlatform) -> WrappedScrollBehavior
pub fn platform(self, platform: TargetPlatform) -> WrappedScrollBehavior
Dart copyWith(platform:).
Sourcepub fn keyboard_dismiss_behavior(
self,
keyboard_dismiss_behavior: ScrollViewKeyboardDismissBehavior,
) -> WrappedScrollBehavior
pub fn keyboard_dismiss_behavior( self, keyboard_dismiss_behavior: ScrollViewKeyboardDismissBehavior, ) -> WrappedScrollBehavior
Dart copyWith(keyboardDismissBehavior:).
Sourcepub fn delegate(&self) -> &ScrollBehaviorRef
pub fn delegate(&self) -> &ScrollBehaviorRef
The behavior this one decorates.
Trait Implementations§
Source§impl Clone for WrappedScrollBehavior
impl Clone for WrappedScrollBehavior
Source§impl Debug for WrappedScrollBehavior
impl Debug for WrappedScrollBehavior
Source§impl ScrollBehavior for WrappedScrollBehavior
impl ScrollBehavior for WrappedScrollBehavior
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased behavior, for Dart’s
behavior.runtimeType and the
covariant oldDelegate a should_notify override casts.Source§fn get_platform(&self, app: &mut App, context: BuildContext) -> TargetPlatform
fn get_platform(&self, app: &mut App, context: BuildContext) -> TargetPlatform
The platform whose scroll physics should be implemented. Read more
Source§fn drag_devices(&self) -> HashSet<PointerDeviceKind>
fn drag_devices(&self) -> HashSet<PointerDeviceKind>
The device kinds that the scrollable will accept drag gestures from. Read more
Source§fn get_multitouch_drag_strategy(
&self,
app: &mut App,
context: BuildContext,
) -> MultitouchDragStrategy
fn get_multitouch_drag_strategy( &self, app: &mut App, context: BuildContext, ) -> MultitouchDragStrategy
The multi-finger drag strategy on multi-touch devices. Read more
Source§fn pointer_axis_modifiers(&self) -> HashSet<LogicalKeyboardKey>
fn pointer_axis_modifiers(&self) -> HashSet<LogicalKeyboardKey>
A set of
LogicalKeyboardKeys that, when any or all are pressed in
combination with a PointerDeviceKind::Mouse pointer scroll event, will
flip the axes of the scroll input. Read moreSource§fn build_scrollbar(
&self,
app: &mut App,
context: BuildContext,
child: WidgetRef,
details: &ScrollableDetails,
) -> WidgetRef
fn build_scrollbar( &self, app: &mut App, context: BuildContext, child: WidgetRef, details: &ScrollableDetails, ) -> WidgetRef
Applies a
RawScrollbar to the child widget on desktop platforms.Source§fn build_overscroll_indicator(
&self,
app: &mut App,
context: BuildContext,
child: WidgetRef,
details: &ScrollableDetails,
) -> WidgetRef
fn build_overscroll_indicator( &self, app: &mut App, context: BuildContext, child: WidgetRef, details: &ScrollableDetails, ) -> WidgetRef
Applies a
GlowingOverscrollIndicator to the child widget on
TargetPlatform::Android and TargetPlatform::Fuchsia.Source§fn velocity_tracker_builder(
&self,
app: &mut App,
context: BuildContext,
) -> GestureVelocityTrackerBuilder
fn velocity_tracker_builder( &self, app: &mut App, context: BuildContext, ) -> GestureVelocityTrackerBuilder
Specifies the type of velocity tracker to use in the descendant
Scrollables’ drag gesture recognizers, for estimating the velocity of a
drag gesture. Read moreSource§fn get_scroll_physics(
&self,
app: &mut App,
context: BuildContext,
) -> ScrollPhysicsRef
fn get_scroll_physics( &self, app: &mut App, context: BuildContext, ) -> ScrollPhysicsRef
The scroll physics to use for the platform given by
get_platform. Read moreSource§fn get_keyboard_dismiss_behavior(
&self,
app: &mut App,
context: BuildContext,
) -> ScrollViewKeyboardDismissBehavior
fn get_keyboard_dismiss_behavior( &self, app: &mut App, context: BuildContext, ) -> ScrollViewKeyboardDismissBehavior
The default keyboard dismissal behavior for
ScrollView widgets. Read moreSource§fn should_notify(&self, old_delegate: &dyn ScrollBehavior) -> bool
fn should_notify(&self, old_delegate: &dyn ScrollBehavior) -> bool
Called whenever a
ScrollConfiguration is rebuilt with a new
ScrollBehavior of the same runtime type. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WrappedScrollBehavior
impl !Send for WrappedScrollBehavior
impl !Sync for WrappedScrollBehavior
impl !UnwindSafe for WrappedScrollBehavior
impl Forget for WrappedScrollBehavior
impl Freeze for WrappedScrollBehaviorwhere
*const RcInner<dyn ScrollBehavior> is !null: Freeze,
PhantomData<RcInner<dyn ScrollBehavior>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(PointerDeviceKind, ())>: Freeze,
PhantomData<(LogicalKeyboardKey, ())>: Freeze,
*const RcInner<dyn ScrollPhysics> is !null: Freeze,
PhantomData<RcInner<dyn ScrollPhysics>>: Freeze,
impl Move for WrappedScrollBehavior
impl Unpin for WrappedScrollBehavior
impl UnsafeUnpin for WrappedScrollBehaviorwhere
*const RcInner<dyn ScrollBehavior> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollBehavior>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(PointerDeviceKind, ())>: UnsafeUnpin,
PhantomData<(LogicalKeyboardKey, ())>: UnsafeUnpin,
*const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollPhysics>>: 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