RemainingTreeRowExtent typedef

RemainingTreeRowExtent = RemainingSpanExtent

Specifies that the row should occupy the remaining space in the viewport.

If the previous TreeRows can already fill out the viewport, this will evaluate the row's height to zero. If the previous rows cannot fill out the viewport, this row's extent will be whatever space is left to fill out the viewport.

To avoid that the row's extent evaluates to zero, consider combining this extent with another extent. The following example will make sure that the span's extent is at least 200 pixels, but if there's more than that available in the viewport, it will fill all that space:

const MaxTreeRowExtent(FixedTreeRowExtent(200.0), RemainingTreeRowExtent());

Implementation

typedef RemainingTreeRowExtent = RemainingSpanExtent;