useFixedExtentScrollController function
FixedExtentScrollController
useFixedExtentScrollController({})
Creates a fixed extent scroll controller
The controller will be automatically disposed when the component is unmounted
Implementation
FixedExtentScrollController useFixedExtentScrollController({
int initialItem = 0,
void Function(ScrollPosition)? onAttach,
void Function(ScrollPosition)? onDetach,
bool keepScrollOffset = true,
String? debugLabel,
}) {
return useChangeNotifier(
() => FixedExtentScrollController(
initialItem: initialItem,
onAttach: onAttach,
onDetach: onDetach,
keepScrollOffset: keepScrollOffset,
debugLabel: debugLabel,
),
);
}