intrinsicsBehavior property

BoxyFlexIntrinsicsBehavior intrinsicsBehavior
final

The strategy of determining the cross-axis size of this flex when intrinsics are required.

Intrinsics are required iff the following conditions are met:

  • There is a dominant child
  • At least one child is flexible
  • At least one child is inflexible

By default, BoxyFlexIntrinsicsBehavior.measureMain is used for horizontal layouts, and BoxyFlexIntrinsicsBehavior.measureMain is used for vertical layouts. These defaults should be sufficient for most width-in-height-out layouts such as Text.

Implementation

final BoxyFlexIntrinsicsBehavior intrinsicsBehavior;