SizedBox.expand constructor

SizedBox.expand({
  1. BloomNode? child,
})

Creates a box that fills its parent.

SizedBox.expand(child: StyledText('Fill'));

Implementation

SizedBox.expand({BloomNode? child})
    : super('div',
          children: child == null ? const [] : [child],
          style: 'width: 100%; height: 100%');