stickyInsetOf method

double stickyInsetOf(
  1. TKey key, {
  2. double extentEstimator(
    1. TKey key
    )?,
})

Height of the sticky band that will sit above key after a scroll that brings it to the top, from settled extents; the composing escape hatch for callers doing their own scroll math (see animateScrollToKey's avoidStickyHeaders).

Implementation

double stickyInsetOf(
  TKey key, {
  double Function(TKey key)? extentEstimator,
}) => _scroll.stickyInsetOf(key, extentEstimator: extentEstimator);