LayoutFlex.flexible constructor

const LayoutFlex.flexible([
  1. int? factor
])

factor shares of the leftover space, free to stay smaller than that. Defaults to 1 share.

Implementation

const LayoutFlex.flexible([int? factor])
  : assert(factor == null || factor > 0, 'Use LayoutFlex.none to ask for no space.'),
    factor = factor ?? 1,
    fit = .loose;