intrinsicSize property

  1. @override
Vector2 get intrinsicSize
override

The smallest possible size this component can possibly have, as a container of other components, and given whatever constraints any subclass of LayoutComponent may prescribe.

Implementation

@override
Vector2 get intrinsicSize => child?.size ?? Vector2.zero();