LayoutFlex.expanded constructor

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

factor shares of the leftover space, filling every bit of what it gets. Defaults to 1 share.

Implementation

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