onDimensionsChanged method

  1. @override
Stream<Rectangle<num>>? onDimensionsChanged({
  1. bool track = false,
})
override

Returns a stream that has events with the dimensions of a DOM element that the popup is positioned relatively to.

It is guaranteed to return at least a single event, the current position.

If track is true, then the DOM is observed for any possible layout changes. This has some performance impact. See DomService. If track is false, the stream will only update when alignOriginX or alignOriginY change.

Implementation

@override
Stream<Rectangle<num>>? onDimensionsChanged({bool track = false}) {
  return _asyncMeasureSize(sourceElement, track: track);
}