Sensitivity constructor
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.
- See also: Sensitivity.only and Sensitivity.all
Implementation
const Sensitivity(this.start, this.end)
: assert(start >= 0 && end >= 0,
'[Sensitivity] > Provide non-negative values');