controller:

controller

child:

ListView

builder

controller:

controller

itemBuilder:

BuildContext

context

int

index

return

Text

'Item

$index

);

);

Code after migration:

final

ScrollController

controller

ScrollController

();

final

Widget

child

ListView

builder

controller:

controller

itemBuilder:

BuildContext

context

int

index

return

Text

'Item