expand method

Expanded expand({
  1. int flex = 1,
})

Modifier for expanding widgets.

Implementation

Expanded expand({int flex = 1}) {
  return Expanded(
    flex: flex,
    child: this,
  );
}