restrictToElementSize property
boolean If true, restrict the quality to media element size. Note: The use of ResizeObserver is required for it to work properly. If true without ResizeObserver, it behaves as false. Defaults false.
Implementation
external bool restrictToElementSize;