width property

int get width
inherited

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;
  1. @Input()
  2. @override
set width (dynamic value)
override

Width of the dropdown/list, default none, valid values are 0-5.

Implementation

@Input()
@override
set width(dynamic value) {
  super.width = value;
}