width property

int get width

Preset width, 1 through 5. By default, width #0 is used. Each width multiplies the base block width (64px on desktop and tablet) by 1.5, 3, 5, 6, 7, respectively to obtain a predictable width. Set to 0 to have the list expand to fit its content. Note: The spec clearly lays out predefined list sizes so use the default, expanding size, sparingly.

Implementation

int get width => _width;
set width (dynamic val)
override

Implementation

set width(val) {
  _width = getInt(val, defaultValue: 0);
  assert(_width >= 0 && _width <= 5);
}