AutoScrollConfig class
Edge auto-scroll while a tile, an external payload or a cross-grid item is dragged near the start or end of the viewport.
Configured on the controller (controller.autoScroll = ...), like
LassoStyle: it is interaction policy, and a nested grid that cannot
scroll delegates to its parent, which applies its own configuration.
- Annotations
Constructors
- AutoScrollConfig({bool enabled = true, double edgeExtent = 50, double maxSpeed = 937.5})
-
Creates an AutoScrollConfig.
const
Properties
- edgeExtent → double
-
Depth, in logical pixels, of the hot zone at each edge of the grid's
viewport along the scroll axis.
final
- enabled → bool
-
Whether dragging near an edge scrolls the grid at all.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxSpeed → double
-
Scroll speed, in logical pixels per SECOND, reached at the very edge.
The speed grows linearly with the depth into the hot zone. The default
matches the historical 15 px every 16 ms.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? enabled, double? edgeExtent, double? maxSpeed}) → AutoScrollConfig - Creates a copy of this AutoScrollConfig with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- byDefault → const AutoScrollConfig
- The default configuration.
- off → const AutoScrollConfig
- Turns edge auto-scroll off.