Sensitivity constructor

const Sensitivity(
  1. double start,
  2. double end
)

Sensitivity corresponds to a tolerance amount at either the start or end of a scrollable wrapped in Curtains.

The start and end sensitivities are the distance from the minimum or maximum extent at which the curtain will trigger its visibility change.

Parameters are positional.

Implementation

const Sensitivity(this.start, this.end)
    : assert(start >= 0 && end >= 0,
          '[Sensitivity] > Provide non-negative values');