Dominant.expanded constructor

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

Same as the default constructor, but expands the child on the main axis similar to Expanded.

This is equivalent to BoxyFlexible(flex: 1, dominant: true, fit: FlexFit.tight, child: ...).

Implementation

const Dominant.expanded({
  Key? key,
  int flex = 1,
  required Widget child,
}) : super(
  key: key,
  flex: flex,
  fit: FlexFit.tight,
  dominant: true,
  child: child,
);