isHeader method
Implementation
AutoLayout isHeader({bool pinned = false, bool floating = false, required double height, double? expandedHeight}) {
return this
.._wrappers.add((widget) {
final delegate = (expandedHeight != null && expandedHeight != height)
? ResizingPinnedHeader(
expandedHeight: expandedHeight,
minExtent: height,
builder: (double height, double ratio, Widget? child) => widget,
child: widget)
: FixedPinnedHeader(child: widget, fixedHeight: height);
return SliverPersistentHeader(
delegate: delegate,
pinned: pinned,
floating: floating,
);
});
}