RenderStickyHeader constructor

RenderStickyHeader({
  1. required ScrollPosition scrollPosition,
  2. RenderStickyHeaderCallback? callback,
  3. bool overlapHeaders = false,
  4. RenderBox? header,
  5. RenderBox? content,
})

Implementation

RenderStickyHeader({
  required ScrollPosition scrollPosition,
  RenderStickyHeaderCallback? callback,
  bool overlapHeaders = false,
  RenderBox? header,
  RenderBox? content,
})  : _scrollPosition = scrollPosition,
      _callback = callback,
      _overlapHeaders = overlapHeaders {
  if (content != null) add(content);
  if (header != null) add(header);
}