StickyHeader constructor

StickyHeader({
  1. Key? key,
  2. required Widget header,
  3. required Widget content,
  4. bool overlapHeaders = false,
  5. ScrollController? controller,
  6. RenderStickyHeaderCallback? callback,
})

Constructs a new StickyHeader widget.

Implementation

StickyHeader({
  Key? key,
  required this.header,
  required this.content,
  this.overlapHeaders = false,
  this.controller,
  this.callback,
}) : super(
        key: key,
        // Note: The order of the children must be preserved for the RenderObject.
        children: [content, header],
      );