DecayConfig.byZone constructor

const DecayConfig.byZone({
  1. required Decay inDisplay,
  2. required Decay pastDisplay,
  3. Settle? settle,
})

Group by zone: inDisplay covers both extending and retracting inside the display; pastDisplay covers both once the edge has crossed.

Implementation

const DecayConfig.byZone({
  required Decay inDisplay,
  required Decay pastDisplay,
  this.settle,
})  : extending = inDisplay,
      retracting = inDisplay,
      extendingPastDisplay = pastDisplay,
      retractingPastDisplay = pastDisplay;