onResize property

  1. @override
ResizeSensorHandler? get onResize
override

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?;
  1. @override
set onResize (ResizeSensorHandler? value)
override

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;