Dominant constructor

const Dominant({
  1. Key? key,
  2. required Widget child,
})

Creates a widget that expands a child of a Row, Column, or Flex so that the child fills the available space along the flex widget's main axis.

This is equivalent to BoxyFlexible(flex: 0, dominant: true, child: ...).

Implementation

const Dominant({
  super.key,
  required super.child,
}) : super(
        flex: 0,
        dominant: true,
      );