shrink property

  1. @override
bool? shrink

Whether the ResizeSensor should shrink to the size of its child.

WARNING: If set to true there is a possibility that the ResizeSensor will not work due to it being too small.

Default: false

Implementation

@override
bool? get shrink =>
    (props[_$key__shrink___$ResizeSensorPropsMixin] ?? null) as bool?;
  1. @override
void shrink=(bool? value)

Whether the ResizeSensor should shrink to the size of its child.

WARNING: If set to true there is a possibility that the ResizeSensor will not work due to it being too small.

Default: false

Implementation

@override
set shrink(bool? value) =>
    props[_$key__shrink___$ResizeSensorPropsMixin] = value;