pub struct PlainScrollBehavior;Expand description
Dart’s instantiable const ScrollBehavior().
Implementations§
Source§impl PlainScrollBehavior
impl PlainScrollBehavior
Sourcepub const fn new() -> PlainScrollBehavior
pub const fn new() -> PlainScrollBehavior
Creates a description of how Scrollable widgets should behave.
Trait Implementations§
Source§impl Clone for PlainScrollBehavior
impl Clone for PlainScrollBehavior
impl Copy for PlainScrollBehavior
Source§impl Debug for PlainScrollBehavior
impl Debug for PlainScrollBehavior
Source§impl Default for PlainScrollBehavior
impl Default for PlainScrollBehavior
impl Eq for PlainScrollBehavior
Source§impl PartialEq for PlainScrollBehavior
impl PartialEq for PlainScrollBehavior
Source§impl ScrollBehavior for PlainScrollBehavior
impl ScrollBehavior for PlainScrollBehavior
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 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 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 moreimpl StructuralPartialEq for PlainScrollBehavior
Auto Trait Implementations§
impl Forget for PlainScrollBehavior
impl Freeze for PlainScrollBehavior
impl Move for PlainScrollBehavior
impl RefUnwindSafe for PlainScrollBehavior
impl Send for PlainScrollBehavior
impl Sync for PlainScrollBehavior
impl Unpin for PlainScrollBehavior
impl UnsafeUnpin for PlainScrollBehavior
impl UnwindSafe for PlainScrollBehavior
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.