Dominant.flexible constructor

const Dominant.flexible({
  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 Flexible.

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

Implementation

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