layoutPreferredSize property

int? get layoutPreferredSize

Preferred size of the legend component. Defaults to 0.

If the legend is positioned in the top or bottom margin, then this configures the legend's height. If positioned in the start or end position, this configures the legend's width.

Implementation

int? get layoutPreferredSize => _config.layoutPreferredSize;
set layoutPreferredSize (int? layoutPreferredSize)

Implementation

set layoutPreferredSize(int? layoutPreferredSize) {
  _config.layoutPreferredSize = layoutPreferredSize;
}