// Override behavior methods like buildOverscrollIndicator and buildScrollbar

// ScrollBehavior can be set for a specific widget.

final

ScrollController

controller

ScrollController

();

ScrollConfiguration

behavior:

MyCustomScrollBehavior

(),

child:

ListView

builder

controller:

controller

itemBuilder:

BuildContext

context

int

index

return

Text

'Item

$index

);

),

);

Copy and modify existing ScrollBehavior

Code before migration:

final

ScrollController

controller

ScrollController