onUpdate property

  1. @Output()
Stream<Null> get onUpdate

Fires an event immediately after StickyController updates the DOM.

The intended use case is to allow manually positioning elements relative to stuck elements, with reasonable efficiency. Do note that reading the DOM during a listener may cause an extra reflow, as the event is fired immediately after reading and then writing to the DOM (during a requestAnimationFrame triggered by a scroll event).

Not supported if usePositionSticky is true.

While this is an @Output() to provide flexibility, note that subscribing via the template adds some overhead.

Implementation

@Output()
Stream<Null> get onUpdate => _onUpdate.stream;