layerRect property

Rect layerRect
read / write

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 = new Rect.fromLTRB(0.0, 0.0, 200.0, 100.0);

Implementation

Rect layerRect