TabularLegendLayout.verticalFirst constructor
TabularLegendLayout.verticalFirst({
- int? desiredMaxRows,
- EdgeInsets? cellPadding,
Layout vertically, until rows exceed desiredMaxRows
.
desiredMaxRows
the max rows to use before layout out items in a new
column. By default there is no limit. The max columns created is the
smaller of desiredMaxRows and number of legend entries.
cellPadding
the EdgeInsets for each widget.
Implementation
factory TabularLegendLayout.verticalFirst({
int? desiredMaxRows,
EdgeInsets? cellPadding,
}) {
return new TabularLegendLayout._internal(
isHorizontalFirst: false,
desiredMaxRows: desiredMaxRows ?? _noLimit,
desiredMaxColumns: _noLimit,
cellPadding: cellPadding,
);
}