usePageController function Null safety

PageController usePageController(
  1. {int initialPage = 0,
  2. bool keepPage = true,
  3. double viewportFraction = 1.0,
  4. List<Object?>? keys}
)

Creates and disposes a PageController.

See also:

Implementation

PageController usePageController({
  int initialPage = 0,
  bool keepPage = true,
  double viewportFraction = 1.0,
  List<Object?>? keys,
}) {
  return use(
    _PageControllerHook(
      initialPage: initialPage,
      keepPage: keepPage,
      viewportFraction: viewportFraction,
      keys: keys,
    ),
  );
}