IntrinsicWidth constructor

const IntrinsicWidth({Key key, double stepWidth, double stepHeight, Widget child })

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 IntrinsicWidth({ Key key, this.stepWidth, this.stepHeight, Widget child })
  : assert(stepWidth == null || stepWidth >= 0.0),
    assert(stepHeight == null || stepHeight >= 0.0),
    super(key: key, child: child);