flexible method

  1. @widgetFactory
Widget flexible([
  1. int flex = 1
])

Sizes this widget within the constraints of the available space within its parent Row, Column, or Flex widget.

Implementation

@widgetFactory
Widget flexible([int flex = 1]) {
  return this.flex(flex);
}