getNestedScrollViewInner function

ScrollController? getNestedScrollViewInner(
  1. BuildContext context
)

Implementation

ScrollController? getNestedScrollViewInner(BuildContext context) {
  final PrimaryScrollController? primaryScrollController =
      context.dependOnInheritedWidgetOfExactType<PrimaryScrollController>();
  if (primaryScrollController == null) {
    throw ("未找到NestedScrollView");
  } else {
    return primaryScrollController.controller;
  }
}