widthFactor constant

PropDef<double?> const widthFactor

A share of the room its parent gives on an axis (Flutter's FractionallySizedBox): a progress bar's fill is widthFactor: 0.6 of its track. Null: sized by width / height.

Implementation

static const widthFactor = PropDef<double?>('widthFactor', OptionalDoubleCodec(min: 0), null,
    doc: "A share of the room the parent gives across (Flutter's `FractionallySizedBox.widthFactor`): a progress bar's fill "
        'is `0.6` of its track. Unset: sized by `width`. Bind it (`\${= item.pct / 100}`) for a bar that follows data.');