AnchorBuilder typedef
AnchorBuilder =
Widget Function(BuildContext context, GlobalKey<State<StatefulWidget> > scrollKey, ScrollController scrollController, bool reverse, Axis scrollDirection, List<GlobalKey<State<StatefulWidget> > > entryKeys)
Implementation
typedef AnchorBuilder = Widget Function(
BuildContext context,
/// 务必把 [scrollKey] 赋值给 滚动组件[key]
GlobalKey scrollKey,
/// 务必把 [scrollController] 回传给 builder 里的滚动组件
ScrollController scrollController,
/// 如果使用 [reverse] 务必把 [reverse] 回传给 builder 里的滚动组件 默认为 false
bool reverse,
/// 如果使用 [scrollDirection] 务必把 [scrollDirection] 回传给 builder 里的滚动组件 默认为 Axis.vertical
Axis scrollDirection,
/// 务必将 entryKeys[index] 赋值给 子元素[key]
List<GlobalKey> entryKeys);