quickMount property

  1. @override
bool? get quickMount
override

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__ResizeSensorProps] ?? null) as bool?;
  1. @override
set quickMount (bool? value)
override

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__ResizeSensorProps] = value;