Sensitivity.only 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.
Default for each value is 0.0
.
- See also: Sensitivity.all and
new Sensitivity
Implementation
const Sensitivity.only({this.start = 0.0, this.end = 0.0})
: assert(start >= 0 && end >= 0,
'[Sensitivity] > Provide non-negative values');