PageAutoScrollController constructor

PageAutoScrollController({
  1. int initialPage = 0,
  2. bool keepPage = true,
  3. double viewportFraction = 1.0,
  4. double? suggestedRowHeight,
  5. ViewportBoundaryGetter viewportBoundaryGetter = defaultViewportBoundaryGetter,
  6. AutoScrollController? copyTagsFrom,
  7. String? debugLabel,
})

Implementation

PageAutoScrollController(
    {int initialPage: 0,
    bool keepPage: true,
    double viewportFraction: 1.0,
    this.suggestedRowHeight,
    this.viewportBoundaryGetter: defaultViewportBoundaryGetter,
    AutoScrollController? copyTagsFrom,
    String? debugLabel})
    : super(
          initialPage: initialPage,
          keepPage: keepPage,
          viewportFraction: viewportFraction) {
  if (copyTagsFrom != null) tagMap.addAll(copyTagsFrom.tagMap);
}