RenderStickyHeader constructor
RenderStickyHeader({
- required ScrollPosition scrollPosition,
- RenderStickyHeaderCallback? callback,
- bool overlapHeaders = false,
- RenderBox? header,
- 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);
}