applyMoveTo method Null safety

  1. @protected
bool applyMoveTo(
  1. double value

Move the position to the given location.

If the new position was fully applied, returns true. If there was any overflow, returns false.

The default implementation calls ScrollActivityDelegate.setPixels and returns true if the overflow was zero.


bool applyMoveTo(double value) {
  return delegate.setPixels(value).abs() < precisionErrorTolerance;