Text

'Item

$index

);

);

Code after migration:

class

MyCustomScrollBehavior

extends

MaterialScrollBehavior

// Override behavior methods and getters like dragDevices

@override

Set

PointerDeviceKind

get

dragDevices

PointerDeviceKind

touch

PointerDeviceKind

mouse

// etc.

};

// ScrollBehavior can be set for a specific widget.

final

ScrollController

controller

ScrollController

();

ScrollConfiguration

behavior:

MyCustomScrollBehavior

(),

child: