shouldNotify method Null safety

bool shouldNotify(
  1. covariant ScrollBehavior oldDelegate

Called whenever a ScrollConfiguration is rebuilt with a new ScrollBehavior of the same runtimeType.

If the new instance represents different information than the old instance, then the method should return true, otherwise it should return false.

If this method returns true, all the widgets that inherit from the ScrollConfiguration will rebuild using the new ScrollBehavior. If this method returns false, the rebuilds might be optimized away.


bool shouldNotify(covariant ScrollBehavior oldDelegate) => false;