SpacingUnit.childSize constructor

const SpacingUnit.childSize([
  1. Object? key
])

Creates a spacing unit based on a child element's size.

The optional key parameter can reference a specific child element.

Implementation

const factory SpacingUnit.childSize([Object? key]) = SpacingChildSize;