TabularLegendLayout.verticalFirst constructor

TabularLegendLayout.verticalFirst({
  1. int? desiredMaxRows,
  2. 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 TabularLegendLayout._internal(
    isHorizontalFirst: false,
    desiredMaxRows: desiredMaxRows ?? _noLimit,
    desiredMaxColumns: _noLimit,
    cellPadding: cellPadding,
  );
}