updateDelegate method Null safety

void updateDelegate(
  1. ScrollActivityDelegate value
)

Updates the controller's link to the ScrollActivityDelegate.

This should only be called when a controller is being moved from a defunct (or about-to-be defunct) ScrollActivityDelegate object to a new one.

Implementation

void updateDelegate(ScrollActivityDelegate value) {
  assert(_delegate != value);
  _delegate = value;
}