quickMount property
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.- onInitialize will never be called.
-
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?;
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.- onInitialize will never be called.
-
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;