sliverOverlapAbsorberHandleFor static method

SliverOverlapAbsorberHandle sliverOverlapAbsorberHandleFor(
  1. BuildContext context
)

Implementation

static SliverOverlapAbsorberHandle sliverOverlapAbsorberHandleFor(BuildContext context) {
  final _InheritedNestedScrollView? target = context.dependOnInheritedWidgetOfExactType<_InheritedNestedScrollView>();
  assert(
  target != null,
  'NestedScrollView.sliverOverlapAbsorberHandleFor must be called with a context that contains a NestedScrollView.',
  );
  return target!.state._absorberHandle;
}