Expanded constructor

Expanded({
  1. int flex = 1,
  2. required BloomNode child,
})

Creates a child that expands in a flex parent.

Expanded(child: StyledText('Fill'));

Implementation

Expanded({int flex = 1, required BloomNode child})
    : super('div', children: [child], style: 'flex: $flex');