onInitialize property

  1. @override
ResizeSensorHandler? get onInitialize
override

A function invoked with a ResizeSensorEvent argument when the resize sensor is initialized.

Will never be called if quickMount is true.

Related: onResize

Implementation

@override
ResizeSensorHandler? get onInitialize =>
    (props[_$key__onInitialize__ResizeSensorProps] ?? null)
        as ResizeSensorHandler?;
  1. @override
set onInitialize (ResizeSensorHandler? value)
override

A function invoked with a ResizeSensorEvent argument when the resize sensor is initialized.

Will never be called if quickMount is true.

Related: onResize

Implementation

@override
set onInitialize(ResizeSensorHandler? value) =>
    props[_$key__onInitialize__ResizeSensorProps] = value;