layerRect property

Rect? layerRect
getter/setter pair

The area that the children of the Layer will occupy. This value is treated as a hint to the rendering system and may in some cases be ignored. If the area isn't known, the layerRect can be set to null.

myLayer.layerRect = Rect.fromLTRB(0.0, 0.0, 200.0, 100.0);

Implementation

Rect? layerRect;