stick abstract method

void stick(
  1. Element element,
  2. StickyPosition position,
  3. Element? range, {
  4. String? stickyClass,
  5. String? stickyKey,
})

Registers the element for sticking to the position (top or bottom), while the given reference element (range) is in the opposite side of the scroll container host.

If range is null, then the element will stick until unstick is called, which is useful if the desired range element is lazily created.

If stickyKey is provided, then only the last (when position is top) or the first (when position is bottom) sticky element with the same stickyKey will be stuck.

Implementation

void stick(Element element, StickyPosition position, Element? range,
    {String? stickyClass, String? stickyKey});