Sensitivity.all constructor
const
Sensitivity.all(
- double sensitivity
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.
Parameter sensitivity
is provided as both start and end.
- See also: Sensitivity.only and
new Sensitivity
Implementation
const Sensitivity.all(double sensitivity)
: start = sensitivity,
end = sensitivity,
assert(
sensitivity >= 0, '[Sensitivity] > Provide a non-negative value');