AutoPanConfig constructor
const
AutoPanConfig({
- EdgeInsets edgePadding = const EdgeInsets.all(50.0),
- double panAmount = 10.0,
- Duration panInterval = const Duration(milliseconds: 16),
- bool useProximityScaling = false,
- Curve? speedCurve,
Creates an autopan configuration.
All parameters have sensible defaults for typical use cases. Use EdgeInsets.all for uniform padding on all edges, or EdgeInsets.only / EdgeInsets.symmetric for per-edge control.
Implementation
const AutoPanConfig({
this.edgePadding = const EdgeInsets.all(50.0),
this.panAmount = 10.0,
this.panInterval = const Duration(milliseconds: 16),
this.useProximityScaling = false,
this.speedCurve,
});