Expanded constructor

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

Creates an Expanded widget with the given flex factor.

Implementation

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