width property

int get width

Selects 1 of 5 predefined width values for the menu.

Ignored if menu instance has a width set. See AcceptsWidth.width for more details.

Implementation

int get width => menu.width;
  1. @override
  2. @Input()
set width (dynamic val)
override

Width of the menu.

Implementation

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