IntrinsicWidthModifier constructor

const IntrinsicWidthModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. double? stepWidth,
  5. double? stepHeight,
})

Creates a widget that sizes its child to the child's intrinsic width.

This class is relatively expensive. Avoid using it where possible.

Implementation

const IntrinsicWidthModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.stepWidth,
  this.stepHeight,
})  : assert(stepWidth == null || stepWidth >= 0.0),
      assert(stepHeight == null || stepHeight >= 0.0);