AutoScrollController constructor
AutoScrollController({
- double initialScrollOffset = 0.0,
- bool keepScrollOffset = true,
- double? suggestedRowHeight,
- ViewportBoundaryGetter viewportBoundaryGetter = defaultViewportBoundaryGetter,
- Axis? axis,
- String? debugLabel,
- AutoScrollController? copyTagsFrom,
Implementation
factory AutoScrollController(
{double initialScrollOffset: 0.0,
bool keepScrollOffset: true,
double? suggestedRowHeight,
ViewportBoundaryGetter viewportBoundaryGetter:
defaultViewportBoundaryGetter,
Axis? axis,
String? debugLabel,
AutoScrollController? copyTagsFrom}) {
return SimpleAutoScrollController(
initialScrollOffset: initialScrollOffset,
keepScrollOffset: keepScrollOffset,
suggestedRowHeight: suggestedRowHeight,
viewportBoundaryGetter: viewportBoundaryGetter,
beginGetter: axis == Axis.horizontal ? (r) => r.left : (r) => r.top,
endGetter: axis == Axis.horizontal ? (r) => r.right : (r) => r.bottom,
copyTagsFrom: copyTagsFrom,
debugLabel: debugLabel);
}