RemainingSpanExtent class

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

If the previous Spans can already fill out the viewport, this will evaluate the span's extent to zero. If the previous spans cannot fill out the viewport, this span's extent will be whatever space is left to fill out the viewport.

To avoid that the span'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 MaxSpanExtent(FixedSpanExtent(200.0), RemainingSpanExtent());
Inheritance

Constructors

RemainingSpanExtent()
Creates a RemainingSpanExtent.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateExtent(SpanExtentDelegate delegate) double
Calculates the actual extent of the span in pixels.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited