onResize property
A function invoked with a ResizeSensorEvent
argument when the ResizeSensor
resizes, either due to its parent or children resizing.
If this callback is not firing when you expect it to, check out onDetachedMountCheck for a possible workaround.
Related: onInitialize
Implementation
@override
ResizeSensorHandler? get onResize =>
(props[_$key__onResize__ResizeSensorProps] ?? null)
as ResizeSensorHandler?;
A function invoked with a ResizeSensorEvent
argument when the ResizeSensor
resizes, either due to its parent or children resizing.
If this callback is not firing when you expect it to, check out onDetachedMountCheck for a possible workaround.
Related: onInitialize
Implementation
@override
set onResize(ResizeSensorHandler? value) =>
props[_$key__onResize__ResizeSensorProps] = value;