shrink property

  1. @override
bool? get shrink
override

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__ResizeSensorProps] ?? null) as bool?;
  1. @override
set shrink (bool? value)
override

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__ResizeSensorProps] = value;