Expanded constructor

const Expanded({
  1. Key? key,
  2. int flex = 1,
  3. int? paintOrder,
  4. required Widget child,
})

Creates a widget that expands a child of a Row, Column, or Flex.

Implementation

const Expanded({
  super.key,
  super.flex,
  super.paintOrder,
  required super.child,
}) : super(fit: rendering.FlexFit.tight);