quickMount property

  1. @override
bool? quickMount

Whether quick-mount mode is enabled, which minimizes layouts caused by accessing element dimensions during initialization, allowing the component to mount faster.

When enabled:

  • The initial dimensions will not be retrieved, so the first onResize event will contain 0 for the previous dimensions.

  • The sensors will be initialized/reset in the next animation frame after mount, as opposed to synchronously, helping to break up resulting layouts.

Default: false

Implementation

@override
bool? get quickMount =>
    (props[_$key__quickMount___$ResizeSensorPropsMixin] ?? null) as bool?;
  1. @override
void quickMount=(bool? value)

Whether quick-mount mode is enabled, which minimizes layouts caused by accessing element dimensions during initialization, allowing the component to mount faster.

When enabled:

  • The initial dimensions will not be retrieved, so the first onResize event will contain 0 for the previous dimensions.

  • The sensors will be initialized/reset in the next animation frame after mount, as opposed to synchronously, helping to break up resulting layouts.

Default: false

Implementation

@override
set quickMount(bool? value) =>
    props[_$key__quickMount___$ResizeSensorPropsMixin] = value;