flexible method

Flexible flexible({
  1. Key? key,
  2. int flex = 1,
})

Returns a new flexible widget with the given flex.

Implementation

Flexible flexible({Key? key, int flex = 1}) {
  return Flexible(key: key, flex: flex, child: this);
}