Sensitivity.all constructor

const Sensitivity.all(
  1. 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.

Implementation

const Sensitivity.all(double sensitivity)
    : start = sensitivity,
      end = sensitivity,
      assert(
          sensitivity >= 0, '[Sensitivity] > Provide a non-negative value');