RenderAbstractViewport.maybeOf

RestorationScope.maybeOf

Scrollable.maybeOf

ScrollNotificationObserver.maybeOf

Migration guide

To modify your code to use the new form of the APIs, first convert all
instances of the original static of functions (where its nullability is
important) to use the maybeOf form instead.

Code before migration:

ScrollController

controller

Scrollable

of

context

);

Code after migration:

ScrollController

controller

Scrollable

maybeOf

context

);

Then, for instances where the code calls the of API followed by an exclamation
point, just remove the exclamation point: it can no longer return a nullable
value.

Code before migration:

ScrollController