Describes how Scrollable widgets should behave.

Used by ScrollConfiguration to configure the Scrollable widgets in a subtree.

Annotations
  • @immutable

Constructors

ScrollBehavior()
Creates a description of how Scrollable widgets should behave.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

buildViewportChrome(BuildContext context, Widget child, AxisDirection axisDirection) Widget
Wraps the given widget, which scrolls in the given AxisDirection. [...]
getPlatform(BuildContext context) TargetPlatform
The platform whose scroll physics should be implemented. [...]
getScrollPhysics(BuildContext context) ScrollPhysics
The scroll physics to use for the platform given by getPlatform. [...]
shouldNotify(ScrollBehavior oldDelegate) bool
Called whenever a ScrollConfiguration is rebuilt with a new ScrollBehavior of the same runtimeType. [...]
toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(other) bool
The equality operator. [...]
inherited