StickyRenderHeader constructor

StickyRenderHeader({
  1. required ScrollableState scrollable,
  2. StickyRenderHeaderCallback? callback,
  3. bool overlapHeaders = false,
  4. RenderBox? header,
  5. RenderBox? content,
})

Implementation

StickyRenderHeader({
  required ScrollableState scrollable,
  StickyRenderHeaderCallback? callback,
  bool overlapHeaders = false,
  RenderBox? header,
  RenderBox? content,
})  : _scrollable = scrollable,
      _callback = callback,
      _overlapHeaders = overlapHeaders {
  if (content != null) add(content);
  if (header != null) add(header);
}