AutoPanConfig constructor

const AutoPanConfig({
  1. EdgeInsets edgePadding = const EdgeInsets.all(50.0),
  2. double panAmount = 10.0,
  3. Duration panInterval = const Duration(milliseconds: 16),
  4. bool useProximityScaling = false,
  5. 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,
});