plushie/prop/length
Length type for widget dimensions.
Lengths control how widgets size themselves within their parent. Fill expands to available space, Shrink wraps content, FillPortion distributes space proportionally, and Fixed sets an exact pixel size.
Types
Values
pub fn to_prop_value(length: Length) -> node.PropValue
Encode a Length to its wire-format PropValue.
Panics when a numeric length is negative or when FillPortion
is less than 1. Negative lengths are rejected at the SDK boundary
rather than silently reaching the renderer.