LayoutFlex.expanded constructor
- int? factor
factor shares of the leftover space, filled. Defaults to 1.
Implementation
const LayoutFlex.expanded([int? factor])
: assert(factor == null || factor > 0, 'Use LayoutFlex.none to ask for no space.'),
factor = factor ?? 1,
fit = .tight;