Code before migration:

ScrollController

controller

Scrollable

of

context

Code after migration:

ScrollController

controller

Scrollable

of

context

);

The following can also be helpful:

unnecessary_non_null_assertion (linter message) identifies
places where an  ! operator should be removed

unnecessary_null_checks (analysis option) identifies places
where the ? operator isn’t needed

unnecessary_null_in_if_null_operators identifies places
where a ?? operator isn’t needed

unnecessary_nullable_for_final_variable_declarations (analysis option)
finds unnecessary question mark operators on final and const variables

Timeline

In stable release: 3.7

References