ResizingPinnedHeader constructor

ResizingPinnedHeader({
  1. required double expandedHeight,
  2. String? debugLabel,
  3. Widget? child,
  4. OverScrollHeaderStretchConfiguration? stretchConfiguration,
  5. double minExtent = kToolbarHeight,
  6. ShouldRebuild? shouldRebuildFn,
  7. required SizedWidgetBuilder builder,
})

Implementation

ResizingPinnedHeader(
    {required this.expandedHeight,
    this.debugLabel,
    this.child,
    this.stretchConfiguration,
    this.minExtent = kToolbarHeight,
    ShouldRebuild? shouldRebuildFn,
    required this.builder})
    : shouldRebuildFn = shouldRebuildFn ??
          ((extent, ratio, overlapsContent) => ratio > 0 && ratio < 1.5);